mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-25 14:35:43 +00:00
Merge pull request #44965 from jpeeler/podpreset-exclusion-simple
Automatic merge from submit-queue Allow pods to opt out of PodPreset mutation via an annotation on the pod An annotation in the pod spec of the form: podpreset.admission.kubernetes.io/PodPresetOptOut: "true" Will cause the admission controller to skip manipulating the pod spec, no matter the labelling. This is an alternative implementation to pull #44163. ```release-note Allow pods to opt out of PodPreset mutation via an annotation on the pod. ```
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user