Documentation ¶
Overview ¶
Package kustomize contains helpers for working with embeded kustomize commands
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(resources, patches []string, patchesJSON6902 []PatchJSON6902) (string, error)
Build takes a set of resource blobs (yaml), patches (strategic merge patch) https://github.com/kubernetes/community/blob/master/contributors/devel/strategic-merge-patch.md and returns the `kustomize build` result as a yaml blob It does this in-memory using the build cobra command
Types ¶
type PatchJSON6902 ¶
type PatchJSON6902 struct { // these fields specify the patch target resource Group string `json:"group"` Version string `json:"version"` Kind string `json:"kind"` // Name and Namespace are optional Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` // Patch should contain the contents of the json patch as a string Patch string `json:"patch"` }
PatchJSON6902 represents an inline kustomize json 6902 patch https://tools.ietf.org/html/rfc6902
Click to show internal directories.
Click to hide internal directories.