Documentation
¶
Overview ¶
Package mutator provide an interface for mutating resources. It also contains some premade generator that can be used as is.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
CanHandleResource(*metav1.PartialObjectMetadata) bool
// Mutate receive a resource that can be mutated or an error if something goes wrong
Mutate(*unstructured.Unstructured, cache.RemoteResourceGetter) error
}
Interface defines the interface for a mutator that can change the resource
func NewLabelsMutator ¶
NewLabelsMutator return a new mutateor.Interface that will integrate the objects labels with the ones provided during initialization
Click to show internal directories.
Click to hide internal directories.