mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Merge pull request #241 from sethpollack/secret
add env sources to secrets
This commit is contained in:
@@ -115,12 +115,20 @@ type SecretArgs struct {
|
||||
// keys: "tls.key" and "tls.crt"
|
||||
Type string `json:"type,omitempty" yaml:"type,omitempty"`
|
||||
|
||||
// Map of keys to commands to generate the values
|
||||
Commands map[string]string `json:",commands,omitempty" yaml:",inline,omitempty"`
|
||||
// CommandSources for secret.
|
||||
CommandSources `json:",inline,omitempty" yaml:",inline,omitempty"`
|
||||
}
|
||||
|
||||
// DataSources contains some generic sources for configmap or secret.
|
||||
// Only one field can be set.
|
||||
// CommandSources contains some generic sources for secrets.
|
||||
type CommandSources struct {
|
||||
// Map of keys to commands to generate the values
|
||||
Commands map[string]string `json:"commands,omitempty" yaml:"commands,omitempty"`
|
||||
// EnvCommand to output lines of key=val pairs to create a secret.
|
||||
// i.e. a Docker .env file or a .ini file.
|
||||
EnvCommand string `json:"envCommand,omitempty" yaml:"envCommand,omitempty"`
|
||||
}
|
||||
|
||||
// DataSources contains some generic sources for configmaps.
|
||||
type DataSources struct {
|
||||
// LiteralSources is a list of literal sources.
|
||||
// Each literal source should be a key and literal value,
|
||||
|
||||
Reference in New Issue
Block a user