kustomize

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var YAMLSeparator = regexp.MustCompile("---\n")

Functions

func Init

func Init(ctx context.Context, path string) (map[string]Manifest, error)

Init runs the `kuztomize init` command on a specified directory, returning the kustomize generated manifest.

The returned map maps the Manifest long name to the manifest.

Types

type Manifest

type Manifest struct {
	// YAML is the original YAML string
	YAML string
	// Parsed is the YAML string parsed as a map
	Parsed map[string]any
	// Name is the name of the manifest
	Name string
	// Namespace is the Kubernetes namespace this manifest is defined in.
	Namespace string
	// Kind is the kind of the manifest
	Kind string
}

Manifest represents a Kubernetes manifest YAML file

func (*Manifest) LongName

func (m *Manifest) LongName() string

LongName returns a long display name for the Manifest, including namespace, kind and name

func (*Manifest) ShortName

func (m *Manifest) ShortName() string

ShortName returns a short display name of the Manifest, including on ly the kind and name

Jump to

Keyboard shortcuts

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