Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func YamlToObject ¶
YamlToObject parses a list of runtime.Objects from the provided yaml If the type is not known in the scheme, it tries to parse it as Unstructured TODO(av) could we use something else than a global scheme here? Should we somehow inject it?
Types ¶
type Engine ¶
Engine is the control struct for parsing and templating Kubernetes resources in an ordered fashion
type Enhancer ¶
type Enhancer interface {
Apply(templates map[string]string, metadata Metadata) ([]runtime.Object, error)
}
Enhancer takes your kubernetes template and kudo related Metadata and applies them to all resources in form of labels and annotations it also takes care of setting an owner of all the resources to the provided object
type KustomizeEnhancer ¶
KustomizeEnhancer is implementation of Enhancer that uses kustomize to apply the defined conventions
func (*KustomizeEnhancer) Apply ¶
func (k *KustomizeEnhancer) Apply(templates map[string]string, metadata Metadata) (objsToAdd []runtime.Object, err error)
Apply accepts templates to be rendered in kubernetes and enhances them with our own KUDO conventions These include the way we name our objects and what labels we apply to them