Documentation
¶
Overview ¶
Package namespace contains a kio.Filter implementation of the kustomize namespace transformer.
Special cases for known Kubernetes resources have been hardcoded in addition to those defined by the FsSlice.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { // Namespace is the namespace to apply to the inputs Namespace string `yaml:"namespace,omitempty"` // FsSlice contains the FieldSpecs to locate the namespace field FsSlice types.FsSlice `json:"fieldSpecs,omitempty" yaml:"fieldSpecs,omitempty"` }
Example ¶
Output: apiVersion: example.com/v1 kind: Foo metadata: name: instance namespace: app --- apiVersion: example.com/v1 kind: Bar metadata: name: instance namespace: app
Click to show internal directories.
Click to hide internal directories.