Documentation ¶
Index ¶
- Constants
- func Platform(ctx context.Context, concurrency int, pf *core.Platform, stderr io.Writer) error
- type HelmChart
- type KubernetesObjects
- type KustomizeBuild
- type Result
- func (r *Result) AccumulatedOutput() string
- func (r *Result) Continue() bool
- func (r *Result) Filename(writeTo string, cluster string) string
- func (r *Result) GetAPIVersion() string
- func (r *Result) GetKind() string
- func (r *Result) KustomizationFilename(writeTo string, cluster string) stringdeprecated
- func (r *Result) Name() string
- func (r *Result) Save(ctx context.Context, path string, content string) error
- func (r *Result) SkipWriteAccumulatedOutput() bool
- func (r *Result) WriteDeployFiles(ctx context.Context, path string) error
Constants ¶
const KubernetesObjectsKind = "KubernetesObjects"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubernetesObjects ¶
type KubernetesObjects struct {
Component core.KubernetesObjects `json:"component" yaml:"component"`
}
KubernetesObjects represents CUE output which directly provides Kubernetes api objects to holos.
func (*KubernetesObjects) Render ¶
func (o *KubernetesObjects) Render(ctx context.Context, path holos.InstancePath) (*Result, error)
Render produces kubernetes api objects from the APIObjectMap of the holos component.
type KustomizeBuild ¶
type KustomizeBuild struct {
Component core.KustomizeBuild `json:"component" yaml:"component"`
}
KustomizeBuild renders plain yaml files in the holos component directory using kubectl kustomize build.
func (*KustomizeBuild) Render ¶
func (kb *KustomizeBuild) Render(ctx context.Context, path holos.InstancePath) (*Result, error)
Render produces a Result by executing kubectl kustomize on the holos component path. Useful for processing raw yaml files.
type Result ¶
type Result struct { // Kind is a string value representing the resource this object represents. Kind string `json:"kind"` // APIVersion represents the versioned schema of this representation of an object. APIVersion string `json:"apiVersion"` // Component represents the common fields of all holos component kinds. Component core.Component // contains filtered or unexported fields }
Result is the build result for display or writing. Holos components Render the Result as a data pipeline.
func (*Result) AccumulatedOutput ¶
AccumulatedOutput returns the accumulated rendered output.
func (*Result) Filename ¶
Filename returns the filename representing the rendered api objects of the Result.
func (*Result) GetAPIVersion ¶
func (*Result) KustomizationFilename
deprecated
func (*Result) SkipWriteAccumulatedOutput ¶
SkipWriteAccumulatedOutput returns true if writing the accumulated output of k8s api objects should be skipped. Useful for results which only write deployment files, like Flux or ArgoCD GitOps resources.