From d9ea62815a9dfad285a254a52a67a728a3409774 Mon Sep 17 00:00:00 2001 From: Quintin Lee Date: Mon, 22 May 2017 19:32:19 -0700 Subject: [PATCH] Add annotation for image policy webhook fail open. Kubernetes-commit: a38c2b4ce183da25262791c791215697e7aeaaa0 --- pkg/api/annotation_key_constants.go | 4 ++++ pkg/api/v1/annotation_key_constants.go | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/pkg/api/annotation_key_constants.go b/pkg/api/annotation_key_constants.go index bfb42c8b..55bf20f9 100644 --- a/pkg/api/annotation_key_constants.go +++ b/pkg/api/annotation_key_constants.go @@ -19,6 +19,10 @@ limitations under the License. package api const ( + // ImagePolicyFailedOpenKey is added to pods created by failing open when the image policy + // webhook backend fails. + ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open" + // MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods MirrorPodAnnotationKey string = "kubernetes.io/config.mirror" diff --git a/pkg/api/v1/annotation_key_constants.go b/pkg/api/v1/annotation_key_constants.go index 96bbdd57..8591f08b 100644 --- a/pkg/api/v1/annotation_key_constants.go +++ b/pkg/api/v1/annotation_key_constants.go @@ -19,6 +19,10 @@ limitations under the License. package v1 const ( + // ImagePolicyFailedOpenKey is added to pods created by failing open when the image policy + // webhook backend fails. + ImagePolicyFailedOpenKey string = "alpha.image-policy.k8s.io/failed-open" + // MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods MirrorPodAnnotationKey string = "kubernetes.io/config.mirror"