package
0.2.0
Repository: https://github.com/ondat/operator-toolkit.git
Documentation: pkg.go.dev

# Functions

AddAnnotationsFunc returns a TransformFunc that adds the given annotations to an object.
AddLabelsFunc returns a TransformFunc that adds the given labels to an object.
GetOwnerRefTemplateParamFor returns a OwnerRefTemplateParam for a given OwnerReference.
SetOwnerReference returns a TransformFunc that sets the ownerReferences in a given object.
SetReplicaFunc returns a TransformFunc that sets the replicas (spec.replicas) in a given object.
Transform takes a Filesystem, a ManifestTransform and a set of common transforms to be applied on all the manifests, and transforms all the manifests.

# Structs

OwnerRefTemplateParam stores the data for the OwnerReference template.

# Type aliases

ManifestTransform is a map of manifest file path and the transformation that needs to be run on the manifest.
TransformFunc is the type of a transform function.