...

Source file src/sigs.k8s.io/kustomize/api/types/generatorargs.go

Documentation: sigs.k8s.io/kustomize/api/types

     1  // Copyright 2019 The Kubernetes Authors.
     2  // SPDX-License-Identifier: Apache-2.0
     3  
     4  package types
     5  
     6  // GeneratorArgs contains arguments common to ConfigMap and Secret generators.
     7  type GeneratorArgs struct {
     8  	// Namespace for the resource, optional
     9  	Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
    10  
    11  	// Name - actually the partial name - of the generated resource.
    12  	// The full name ends up being something like
    13  	// NamePrefix + this.Name + hash(content of generated resource).
    14  	Name string `json:"name,omitempty" yaml:"name,omitempty"`
    15  
    16  	// Behavior of generated resource, must be one of:
    17  	//   'create': create a new one
    18  	//   'replace': replace the existing one
    19  	//   'merge': merge with the existing one
    20  	Behavior string `json:"behavior,omitempty" yaml:"behavior,omitempty"`
    21  
    22  	// KvPairSources for the generator.
    23  	KvPairSources `json:",inline,omitempty" yaml:",inline,omitempty"`
    24  
    25  	// Local overrides to global generatorOptions field.
    26  	Options *GeneratorOptions `json:"options,omitempty" yaml:"options,omitempty"`
    27  }
    28  

View as plain text