add replacement transformer

This commit is contained in:
Natasha Sarkar
2021-04-14 16:08:50 -07:00
parent 0df531e7c6
commit 038bc7713b
14 changed files with 916 additions and 3 deletions

View File

@@ -74,6 +74,10 @@ type Kustomization struct {
// patch, but this operator is simpler to specify.
Images []Image `json:"images,omitempty" yaml:"images,omitempty"`
// Replacements is a list of replacements, which will copy nodes from a
// specified source to N specified targets.
Replacements []ReplacementField `json:"replacements,omitempty" yaml:"replacements,omitempty"`
// Replicas is a list of {resourcename, count} that allows for simpler replica
// specification. This can also be done with a patch.
Replicas []Replica `json:"replicas,omitempty" yaml:"replicas,omitempty"`

View File

@@ -0,0 +1,6 @@
package types
type ReplacementField struct {
Replacement `json:",inline,omitempty" yaml:",inline,omitempty"`
Path string `json:"path,omitempty" yaml:"path,omitempty"`
}