mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
add secret and configmap generator plugins
This commit is contained in:
@@ -189,6 +189,9 @@ type GeneratorArgs struct {
|
||||
|
||||
// DataSources for the generator.
|
||||
DataSources `json:",inline,omitempty" yaml:",inline,omitempty"`
|
||||
|
||||
// KVSources for the generator.
|
||||
KVSources []KVSource `json:",inline,omitempty" yaml:",inline,omitempty"`
|
||||
}
|
||||
|
||||
// ConfigMapArgs contains the metadata of how to generate a configmap.
|
||||
@@ -248,3 +251,10 @@ type GeneratorOptions struct {
|
||||
// resource contents.
|
||||
DisableNameSuffixHash bool `json:"disableNameSuffixHash,omitempty" yaml:"disableNameSuffixHash,omitempty"`
|
||||
}
|
||||
|
||||
// KVSource represents a KV plugin backend.
|
||||
type KVSource struct {
|
||||
PluginType string `json:"pluginType,omitempty" yaml:"pluginType,omitempty"`
|
||||
Name string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
Args []string `json:"args,omitempty" yaml:"args,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user