Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exist ¶
func Exist(patches []StrategicMerge, path string) bool
Exist determines if a patch path exists in a slice of StrategicMerge
Types ¶
type Json6902 ¶ added in v1.0.9
type Json6902 struct { // Target refers to a Kubernetes object that the json patch will be // applied to. It must refer to a Kubernetes resource under the // purview of this kustomization. Target should use the // raw name of the object (the name specified in its YAML, // before addition of a namePrefix and a nameSuffix). Target *Target `json:"target" yaml:"target"` // relative file path for a json patch file inside a kustomization Path string `json:"path,omitempty" yaml:"path,omitempty"` }
Json6902 represents a json patch for an object with format documented https://tools.ietf.org/html/rfc6902.
type StrategicMerge ¶ added in v1.0.9
type StrategicMerge string
StrategicMerge represents a relative path to a stategic merge patch with the format https://github.com/kubernetes/community/blob/master/contributors/devel/strategic-merge-patch.md
func Append ¶
func Append(patches []StrategicMerge, paths ...string) []StrategicMerge
Append appends a slice of patch paths to a StrategicMerge slice
Click to show internal directories.
Click to hide internal directories.