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.
Click to show internal directories.
Click to hide internal directories.