package patch
import "sigs.k8s.io/kustomize/pkg/patch"
Index ¶
- func Exist(patches []StrategicMerge, path string) bool
- type Json6902
- type StrategicMerge
- type Target
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 ¶
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 ¶
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
type Target ¶
type Target struct { gvk.Gvk `json:",inline,omitempty" yaml:",inline,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
Source Files ¶
json6902.go strategicmerge.go
Directories ¶
Path | Synopsis |
---|---|
pkg/patch/transformer |
- Version
- v1.0.11 (latest)
- Published
- Nov 29, 2018
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.