patch

package
v2.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL