Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPodLabeler ¶
func NewPodLabeler(labels map[string]string) kwhmutating.Mutator
NewPodLabeler returns a new PodLabeler initialized.
Types ¶
type PodLabeler ¶
type PodLabeler struct {
// contains filtered or unexported fields
}
PodLabeler is a mutator that will set labels on the received pods.
func (*PodLabeler) Mutate ¶
func (p *PodLabeler) Mutate(ctx context.Context, ar *kwhmodel.AdmissionReview, obj metav1.Object) (*kwhmutating.MutatorResult, error)
Mutate will set the required labels on the pods. Satisfies mutating.Mutator interface.
Click to show internal directories.
Click to hide internal directories.