Documentation
¶
Index ¶
- func GetAmazonCloudWatchAgentResource(ctx context.Context, c client.Client, name string) v1alpha1.AmazonCloudWatchAgent
- func InjectAnnotationKey(instType Type) string
- func NewMutator(logger logr.Logger, client client.Client, recorder record.EventRecorder) *instPodMutator
- type AnnotationMutation
- type AnnotationMutator
- type Type
- type TypeSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAmazonCloudWatchAgentResource ¶ added in v1.2.1
func InjectAnnotationKey ¶ added in v1.1.0
InjectAnnotationKey maps the instrumentation type to the inject annotation.
func NewMutator ¶
Types ¶
type AnnotationMutation ¶ added in v1.1.0
type AnnotationMutation interface { // Mutate attempts to modify the annotations map. Returns the mutated annotations if any. Mutate(annotations map[string]string) map[string]string }
AnnotationMutation is used to modify an annotation map.
func NewInsertAnnotationMutation ¶ added in v1.1.0
func NewInsertAnnotationMutation(annotations map[string]string) AnnotationMutation
NewInsertAnnotationMutation creates a new mutation that inserts annotations. Any missing annotation key is sufficient for it to attempt to insert.
func NewRemoveAnnotationMutation ¶ added in v1.1.0
func NewRemoveAnnotationMutation(annotations []string) AnnotationMutation
NewRemoveAnnotationMutation creates a new mutation that removes annotations. All provided annotation keys must be present for it to attempt to remove them.
type AnnotationMutator ¶ added in v1.1.0
type AnnotationMutator struct {
// contains filtered or unexported fields
}
func NewAnnotationMutator ¶ added in v1.1.0
func NewAnnotationMutator(mutations []AnnotationMutation) AnnotationMutator
NewAnnotationMutator creates a mutator with the provided mutations that can mutate an Object's annotations.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.