From fdfa162aed4ceae0abd684a0590e61b764b17152 Mon Sep 17 00:00:00 2001 From: Jordan Liggitt Date: Sat, 13 May 2017 15:48:44 -0400 Subject: [PATCH] Require nodeName for mirror pods, make mirror pod annotation immutable Kubernetes-commit: cd3a1187a1736985ea32111a61646ab691849a4d --- pkg/api/annotation_key_constants.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/api/annotation_key_constants.go b/pkg/api/annotation_key_constants.go index 30331f98..e63417fc 100644 --- a/pkg/api/annotation_key_constants.go +++ b/pkg/api/annotation_key_constants.go @@ -17,6 +17,9 @@ limitations under the License. package api const ( + // MirrorAnnotationKey represents the annotation key set by kubelets when creating mirror pods + MirrorPodAnnotationKey string = "kubernetes.io/config.mirror" + // TolerationsAnnotationKey represents the key of tolerations data (json serialized) // in the Annotations of a Pod. TolerationsAnnotationKey string = "scheduler.alpha.kubernetes.io/tolerations"