builtins

package
v1.0.0-beta.17 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkgContextFile = "package-context.yaml"
)

Variables

This section is empty.

Functions

func AbstractPkgContext

func AbstractPkgContext() string

AbstractPkgContext returns content for package context that contains placeholder value for package name. This will be used to create abstract blueprints.

Types

type PackageContextGenerator

type PackageContextGenerator struct{}

PackageContextGenerator is a built-in KRM function that generates a KRM object that contains package context information that can be used by functions such as `set-namespace` to customize package with minimal configuration.

func (*PackageContextGenerator) Process

func (pc *PackageContextGenerator) Process(resourceList *framework.ResourceList) error

Process implements framework.ResourceListProcessor interface.

func (*PackageContextGenerator) Run

Run function reads the function input `resourceList` from a given reader `r` and writes the function output to the provided writer `w`. Run implements the function signature defined in sigs.k8s.io/kustomize/kyaml/fn/runtime/runtimeutil/FunctionFilter.Run.

Jump to

Keyboard shortcuts

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