builtins

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PkgContextFile = "package-context.yaml"
	PkgContextName = "kptfile.kpt.dev"

	ConfigKeyPackagePath = "package-path"
)

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 PackageConfig

type PackageConfig struct {
	// PackagePath is the path to the package, as determined by the names of the parent packages.
	// The path to a package is the parent package path joined with the package name.
	PackagePath string
}

PackageConfig holds package automatic configuration

type PackageContextGenerator

type PackageContextGenerator struct {
	// PackageConfig contains the package configuration to set.
	PackageConfig *PackageConfig
}

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