Documentation ¶
Overview ¶
Package builder is responsible for building fully rendered kubernetes api objects from various input directories. A directory may contain a platform spec or a component spec.
Index ¶
- Constants
- type BuildData
- type Builder
- func (b *Builder) Cluster() string
- func (b *Builder) Platform(ctx context.Context, cfg *client.Config) (*core.Platform, error)
- func (b *Builder) Run(ctx context.Context, cfg *client.Config) (results []*render.Result, err error)
- func (b *Builder) Unify(ctx context.Context, cfg *client.Config) (bd BuildData, err error)
- type Option
Constants ¶
View Source
const ( KubernetesObjects = v1.KubernetesObjectsKind // Helm is the value of the kind field of holos build output indicating helm // values and helm command information. Helm = v1.HelmChartKind // Skip is the value when the instance should be skipped Skip = "Skip" // KustomizeBuild is the value of the kind field of cue output indicating // holos should process the component using kustomize build to render output. KustomizeBuild = v1alpha1.KustomizeBuildKind )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildData ¶ added in v0.91.0
type BuildData struct { Value cue.Value ModuleRoot string InstancePath holos.InstancePath Dir string }
BuildData represents the data necessary to produce a build plan. It is a convenience wrapper to store relevant fields to inform the user.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Run ¶
func (b *Builder) Run(ctx context.Context, cfg *client.Config) (results []*render.Result, err error)
Run builds the cue entrypoint into zero or more Results. Exactly one CUE package entrypoint is expected in the args slice. The platform config is provided to the entrypoint through a json encoded string tag named platform_config. The resulting cue.Value is unified with all user data files at the path "#UserData".
Click to show internal directories.
Click to hide internal directories.