Skip to content

Commit

Permalink
Use taint keys from k8s.io/api/core/v1 module
Browse files Browse the repository at this point in the history
  • Loading branch information
losipiuk committed Nov 12, 2019
1 parent 4a7f765 commit 6a7f3da
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions cluster-autoscaler/core/utils/taint_key_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package utils

import (
v1 "k8s.io/api/core/v1"
schedulerapi "k8s.io/kubernetes/pkg/scheduler/api"
)

Expand All @@ -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,
}
)

0 comments on commit 6a7f3da

Please sign in to comment.