kustomize

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Overview

Package kustomize contains helpers for working with embedded kustomize commands

Package kustomize contains helpers for working with embedded kustomize commands

Index

Constants

This section is empty.

Variables

View Source
var KustomizationFileNames = []string{
	"kustomization.yaml",
	"kustomization.yml",
	"Kustomization",
}

Functions

func BytesToUtf8Lf added in v0.22.0

func BytesToUtf8Lf(file []byte) (string, error)

func GetUnstructuredObjects

func GetUnstructuredObjects(data []byte) ([]runtime.Object, error)

Types

type Manager

type Manager struct {
	filesys.FileSystem
}

Manager define a manager that allow access to kustomize capabilities

func (*Manager) AddPatch added in v0.31.0

func (km *Manager) AddPatch(name string, data []byte) error

func (*Manager) Kustomize

func (km *Manager) Kustomize(namespace string, objects ...runtime.Object) ([]runtime.Object, error)

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

func (*Manager) KustomizeRaw

func (km *Manager) KustomizeRaw(namespace string, data []byte) ([]runtime.Object, error)

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

Jump to

Keyboard shortcuts

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