From 560b8efb7995a7de5f784865469c40c9780d4637 Mon Sep 17 00:00:00 2001 From: Andrew Sy Kim Date: Fri, 8 Nov 2019 11:16:34 -0500 Subject: [PATCH] noderestriction: update node restriction unit tests to use stable instance-type label Signed-off-by: Andrew Sy Kim --- plugin/pkg/admission/noderestriction/admission_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/pkg/admission/noderestriction/admission_test.go b/plugin/pkg/admission/noderestriction/admission_test.go index 551dee24f6e..2f40d1f669a 100644 --- a/plugin/pkg/admission/noderestriction/admission_test.go +++ b/plugin/pkg/admission/noderestriction/admission_test.go @@ -166,9 +166,9 @@ func setAllowedUpdateLabels(node *api.Node, value string) *api.Node { node.Labels["topology.kubernetes.io/zone"] = value node.Labels["topology.kubernetes.io/region"] = value node.Labels["beta.kubernetes.io/instance-type"] = value + node.Labels["node.kubernetes.io/instance-type"] = value node.Labels["beta.kubernetes.io/os"] = value node.Labels["beta.kubernetes.io/arch"] = value - node.Labels["kubernetes.io/instance-type"] = value node.Labels["kubernetes.io/os"] = value node.Labels["kubernetes.io/arch"] = value