diff --git a/cluster-autoscaler/utils/taints/taints.go b/cluster-autoscaler/utils/taints/taints.go index 7b825acca05e..241599b54ecc 100644 --- a/cluster-autoscaler/utils/taints/taints.go +++ b/cluster-autoscaler/utils/taints/taints.go @@ -61,8 +61,8 @@ type TaintKeySet map[string]bool // TaintConfig is a config of taints that require special handling type TaintConfig struct { - IgnoredTaints TaintKeySet - StatusTaints TaintKeySet + IgnoredTaints TaintKeySet + StatusTaints TaintKeySet } // NewTaintConfig returns the taint config extracted from options @@ -80,8 +80,8 @@ func NewTaintConfig(opts config.AutoscalingOptions) TaintConfig { } return TaintConfig{ - IgnoredTaints: ignoredTaints, - StatusTaints: statusTaints, + IgnoredTaints: ignoredTaints, + StatusTaints: statusTaints, } } diff --git a/cluster-autoscaler/utils/taints/taints_test.go b/cluster-autoscaler/utils/taints/taints_test.go index 40f87e9baf77..43a7dde869b4 100644 --- a/cluster-autoscaler/utils/taints/taints_test.go +++ b/cluster-autoscaler/utils/taints/taints_test.go @@ -555,8 +555,8 @@ func TestSanitizeTaints(t *testing.T) { }, } taintConfig := TaintConfig{ - IgnoredTaints: map[string]bool{"ignore-me": true}, - StatusTaints: map[string]bool{"status-me": true}, + IgnoredTaints: map[string]bool{"ignore-me": true}, + StatusTaints: map[string]bool{"status-me": true}, } newTaints := SanitizeTaints(node.Spec.Taints, taintConfig)