Debian Codegraph @

api/types/secretargs.go

raw
1 // Copyright 2019 The Kubernetes Authors.
2 // SPDX-License-Identifier: Apache-2.0
3
4 package types
5
6 // SecretArgs contains the metadata of how to generate a secret.
7 type SecretArgs struct {
8 // GeneratorArgs for the secret.
9 GeneratorArgs `json:",inline,omitempty" yaml:",inline,omitempty"`
10
11 // Type of the secret.
12 //
13 // This is the same field as the secret type field in v1/Secret:
14 // It can be "Opaque" (default), or "kubernetes.io/tls".
15 //
16 // If type is "kubernetes.io/tls", then "literals" or "files" must have exactly two
17 // keys: "tls.key" and "tls.crt"
18 Type string `json:"type,omitempty" yaml:"type,omitempty"`
19 }