mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-05 19:26:23 +00:00
Allow pods to opt out of PodPreset mutation
An annotation in the pod spec of the form: podpreset.admission.kubernetes.io/exclude: "true" Will cause the admission controller to skip manipulating the pod spec, no matter the labelling. The annotation for a podpreset acting on a pod has also been slightly modified to contain a podpreset prefix: podpreset.admission.kubernetes.io/podpreset-{name} = resource version Fixes #44161 Kubernetes-commit: 08a59530e196ab9b30d306fb0fac5979b07298a1
This commit is contained in:
parent
52247e9130
commit
25e58688a7
@ -23,6 +23,9 @@ const (
|
||||
// webhook backend fails.
|
||||
ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open"
|
||||
|
||||
// PodPresetOptOutAnnotationKey represents the annotation key for a pod to exempt itself from pod preset manipulation
|
||||
PodPresetOptOutAnnotationKey string = "podpreset.admission.kubernetes.io/exclude"
|
||||
|
||||
// MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods
|
||||
MirrorPodAnnotationKey string = "kubernetes.io/config.mirror"
|
||||
|
||||
|
@ -23,6 +23,9 @@ const (
|
||||
// webhook backend fails.
|
||||
ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open"
|
||||
|
||||
// PodPresetOptOutAnnotationKey represents the annotation key for a pod to exempt itself from pod preset manipulation
|
||||
PodPresetOptOutAnnotationKey string = "podpreset.admission.kubernetes.io/exclude"
|
||||
|
||||
// MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods
|
||||
MirrorPodAnnotationKey string = "kubernetes.io/config.mirror"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user