package kustomize
import "k8s.io/kubernetes/cmd/kubeadm/app/util/kustomize"
Package kustomize contains helpers for working with embedded kustomize commands
Index ¶
- type Manager
- func GetManager(kustomizeDir string) (*Manager, error)
- func (km *Manager) Kustomize(res []byte) ([]byte, error)
- type UnstructuredSlice
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager define a manager that allow access to kustomize capabilities
func GetManager ¶
GetManager return the KustomizeManager singleton instance
func (*Manager) Kustomize ¶
Kustomize apply a set of patches to a resource. Portions of the kustomize logic in this function are taken from the kubernetes-sigs/kind project
type UnstructuredSlice ¶
type UnstructuredSlice []*unstructured.Unstructured
UnstructuredSlice is a slice of Unstructured objects. Unstructured objects are used to represent both resources and patches of any group/version/kind.
func NewUnstructuredSliceFromBytes ¶
func NewUnstructuredSliceFromBytes(in []byte) (UnstructuredSlice, error)
NewUnstructuredSliceFromBytes returns a slice of Unstructured. This functions handles all the nuances of Kubernetes yaml (e.g. many yaml documents in one file, List of objects)
func NewUnstructuredSliceFromFiles ¶
func NewUnstructuredSliceFromFiles(loader ifc.Loader, paths []string) (UnstructuredSlice, error)
NewUnstructuredSliceFromFiles returns a ResMap given a resource path slice. This func use a Loader to mimic the behavior of kubectl kustomize, and most specifically support for reading from a local git repository like git@github.com:someOrg/someRepo.git or https://github.com/someOrg/someRepo?ref=someHash
func (*UnstructuredSlice) FilterResource ¶
func (rs *UnstructuredSlice) FilterResource(gvk schema.GroupVersionKind, namespace, name string) UnstructuredSlice
FilterResource returns all the Unstructured items in the UnstructuredSlice corresponding to a given resource
Source Files ¶
kustomize.go unstructured.go
- Version
- v1.16.0-beta.1
- Published
- Aug 20, 2019
- Platform
- linux/amd64
- Imports
- 18 packages
- Last checked
- 31 seconds ago –
Tools for package owners.