SecretGenerator
SecretGenerator
SecretGenerator generates Secret objects.
-
apiVersion: builtin
-
kind: SecretGenerator
-
metadata (ObjectMeta)
Kubernetes API object metadata.
-
name (string), optional
Name of the generated resource. A hash suffix will be added to the Name by default.
-
namespace (string), optional
Namespace of the generated resource.
-
behavior (string), optional
Behavior of generated resource, must be one of:
- create: Create new resource
- replace: Replace existing resource
- merge: Merge with existing resource
-
literals ([]string), optional
List of string literal pair sources. Each literal source should be a key and literal value, e.g.
key=value
. -
files ([]string), optional
List of files paths to use in creating a list of key value pairs. A source should be in the form [{key}=]{path}. If the
key=
argument is not provided, the key is the path’s basename. If thekey=
argument is provided, it becomes the key. The value is the file contents. Specifying a directory will iterate each named file in the directory whose basename is a valid resource key. -
envs ([]string), optional
List of file paths. The contents of each file should be one key=value pair per line. Additionally, npm
.env
and.ini
files are supported. -
env (string), optional
Env is the singular form of
envs
. This is merged withenv
on edits withkustomize fix
for consistency withliterals
andfiles
. -
options (GeneratorOptions)
Options override global generatorOptions field.
-
type (string), optional
Type of the secret. Must be
Opaque
orkubernetes.io/tls
. Defaults toOpaque
.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.