Documentation ¶
Overview ¶
Package patchstrategicmerge contains a kio.Filter implementation of the kustomize strategic merge patch transformer.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
Example ¶
err := kio.Pipeline{ Inputs: []kio.Reader{&kio.ByteReader{Reader: bytes.NewBufferString(` apiVersion: example.com/v1 kind: Foo metadata: name: instance spec: replicas: 3 `)}}, Filters: []kio.Filter{Filter{ Patch: yaml.MustParse(` spec: template: containers: - image: nginx `), }}, Outputs: []kio.Writer{kio.ByteWriter{Writer: os.Stdout}}, }.Execute() if err != nil { log.Fatal(err) }
Output: apiVersion: example.com/v1 kind: Foo metadata: name: instance spec: replicas: 3 template: containers: - image: nginx
Click to show internal directories.
Click to hide internal directories.