generate

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KubectlVersionCheck  = kubectlVersion
	KustomizeBinaryCheck = kustomizeBinary
)

for testing

Functions

func DependenciesForKustomization

func DependenciesForKustomization(dir string) ([]string, error)

DependenciesForKustomization finds common kustomize artifacts relative to the provided working dir, and collects them into a list of files to be passed to the file watcher.

func FindKustomizationConfig

func FindKustomizationConfig(dir string) (string, error)

FindKustomizationConfig finds the kustomization config relative to the provided dir. A Kustomization config must be at the root of the directory. Kustomize will error if more than one of these files exists so order doesn't matter.

func NewKCfg

func NewKCfg(context, config, namespace string) kCfg

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator provides the functions for the manifest sources (raw manifests, helm charts, kustomize configs and remote packages).

func NewGenerator

func NewGenerator(workingDir string, config latest.Generate, hydrationDir string) Generator

NewGenerator instantiates a Generator object.

func (Generator) Generate

func (g Generator) Generate(ctx context.Context, out io.Writer) (manifest.ManifestList, error)

Generate parses the config resources from the paths in .Generate.Manifests. This path can be the path to raw manifest, kustomize manifests, helm charts or kpt function configs. All should be file-watched.

func (Generator) ManifestDeps

func (g Generator) ManifestDeps() ([]string, error)

Jump to

Keyboard shortcuts

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