Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exist ¶
func Exist(patches []PatchStrategicMerge, path string) bool
Exist determines if a patch path exists in a slice of PatchStategicMerge
Types ¶
type PatchJson6902 ¶
type PatchJson6902 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). 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"` }
PatchJson6902 represents a json patch for an object with format documented https://tools.ietf.org/html/rfc6902.
type PatchStrategicMerge ¶
type PatchStrategicMerge string
PatchStrategicMerge represents a relative path to a stategic merget patch with the format https://github.com/kubernetes/community/blob/master/contributors/devel/strategic-merge-patch.md
func Append ¶
func Append(patches []PatchStrategicMerge, paths ...string) []PatchStrategicMerge
Append appends a slice of patch paths to a PatchStategicMerge slice
type Target ¶
type Target struct { Group string `json:"group,omitempty" yaml:"group,omitempty"` Version string `json:"version,omitempty" yaml:"version,omitempty"` Kind string `json:"kind,omitempty" yaml:"kind,omitempty"` Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` Name string `json:"name" yaml:"name"` }
Target represents the kubernetes object that the patch is applied to
Click to show internal directories.
Click to hide internal directories.