• Jeff Peeler's avatar
    Allow pods to opt out of PodPreset mutation · 08a59530
    Jeff Peeler authored
    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
    08a59530
annotation_key_constants.go 5.75 KB