Documentation ¶
Index ¶
Constants ¶
View Source
const ( // All resources are output into a single YAML file. YamlOutputTypeSingleFile yamlOutputType = "single" // Resources are split into seperate files by scope. YamlOutputTypeFilePerScope yamlOutputType = "scope" // Each resource is output to its own file. YamlOutputTypeFilePerResource yamlOutputType = "resource" // Each resource is output to its own file in a folder named after the scope. YamlOutputTypeFolderPerScopeFilePerResource yamlOutputType = "folder" // Resources are split into seperate files by scope, while creating a folder for each scope. YamlOutputTypeFolderPerScopeFilePerLeafScope yamlOutputType = "folder-per-parent" )
inspired by cdk8s (https://cdk8s.io/docs/latest/reference/cdk8s/python/#yamloutputtype)
Variables ¶
This section is empty.
Functions ¶
func GenerateContextKey ¶
func GenerateContextKey() string
Types ¶
type ApiObjectProps ¶
type ApiObjectProps struct {
*unstructured.Unstructured
}
type Builder ¶
type Builder interface { Scope RenderManifests(opts RenderManifestsOptions) }
func NewBuilder ¶
func NewBuilder(opts BuilderOptions) Builder
type BuilderOptions ¶
type BuilderOptions struct { SchemeBuilder runtime.SchemeBuilder Logger Logger }
type CustomLoggerOptions ¶ added in v0.0.2
type Logger ¶ added in v0.0.2
type Logger interface { Infof(msg string, args ...any) Warnf(msg string, args ...any) Panicf(msg string, args ...any) }
func NewCustomLogger ¶ added in v0.0.2
func NewCustomLogger(props *CustomLoggerOptions) Logger
type RenderManifestsOptions ¶ added in v0.0.2
type Scope ¶
type Scope interface { ID() string Namespace() string CreateScope(id string, props ScopeProps) Scope GetContext(key string) any SetContext(key string, value any) AddApiObject(obj runtime.Object) ApiObject AddApiObjectFromMap(props map[string]any) ApiObject WalkApiObjects(walkFn func(ApiObject) error) error Logger() Logger }
type ScopeProps ¶
type ScopeProps struct {
Namespace string
}
Click to show internal directories.
Click to hide internal directories.