Add namespace for config map and secret generators

This commit is contained in:
luktom
2018-12-05 11:18:57 +01:00
parent 8a8331bf57
commit 6ad5d9f55b
8 changed files with 72 additions and 0 deletions

View File

@@ -153,6 +153,9 @@ type ConfigMapArgs struct {
// hash(content of configmap).
Name string `json:"name,omitempty" yaml:"name,omitempty"`
// Namespace for the configmap, optional
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
// behavior of configmap, must be one of create, merge and replace
// 'create': create a new one;
// 'replace': replace the existing one;
@@ -170,6 +173,9 @@ type SecretArgs struct {
// hash(content of secret).
Name string `json:"name,omitempty" yaml:"name,omitempty"`
// Namespace for the secret, optional
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
// behavior of secretGenerator, must be one of create, merge and replace
// 'create': create a new one;
// 'replace': replace the existing one;