kustomize

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package kustomize contains helpers for working with embedded 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
	// NOTE: technically name is required now, but we default it elsewhere
	// Third party users of this type / library would need to set it.
	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

Jump to

Keyboard shortcuts

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