From 6a7f3da58566317d505681b27d19fd5e8802e660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Osipiuk?= Date: Fri, 8 Nov 2019 13:53:30 +0100 Subject: [PATCH] Use taint keys from k8s.io/api/core/v1 module --- .../core/utils/taint_key_set.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/cluster-autoscaler/core/utils/taint_key_set.go b/cluster-autoscaler/core/utils/taint_key_set.go index d97790e0052e..d5cb1278199e 100644 --- a/cluster-autoscaler/core/utils/taint_key_set.go +++ b/cluster-autoscaler/core/utils/taint_key_set.go @@ -17,6 +17,7 @@ limitations under the License. package utils import ( + v1 "k8s.io/api/core/v1" schedulerapi "k8s.io/kubernetes/pkg/scheduler/api" ) @@ -26,14 +27,14 @@ type TaintKeySet map[string]bool var ( // NodeConditionTaints lists taint keys used as node conditions NodeConditionTaints = TaintKeySet{ - schedulerapi.TaintNodeNotReady: true, - schedulerapi.TaintNodeUnreachable: true, - schedulerapi.TaintNodeUnschedulable: true, - schedulerapi.TaintNodeMemoryPressure: true, - schedulerapi.TaintNodeDiskPressure: true, - schedulerapi.TaintNodeNetworkUnavailable: true, - schedulerapi.TaintNodePIDPressure: true, - schedulerapi.TaintExternalCloudProvider: true, - schedulerapi.TaintNodeShutdown: true, + v1.TaintNodeNotReady: true, + v1.TaintNodeUnreachable: true, + v1.TaintNodeUnschedulable: true, + v1.TaintNodeMemoryPressure: true, + v1.TaintNodeDiskPressure: true, + v1.TaintNodeNetworkUnavailable: true, + v1.TaintNodePIDPressure: true, + schedulerapi.TaintExternalCloudProvider: true, + schedulerapi.TaintNodeShutdown: true, } )