Skip to content

Commit

Permalink
Fix formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
atwamahmoud committed Sep 25, 2023
1 parent 43bad9a commit 6bf31ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cluster-autoscaler/utils/taints/taints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -80,8 +80,8 @@ func NewTaintConfig(opts config.AutoscalingOptions) TaintConfig {
}

return TaintConfig{
IgnoredTaints: ignoredTaints,
StatusTaints: statusTaints,
IgnoredTaints: ignoredTaints,
StatusTaints: statusTaints,
}
}

Expand Down
4 changes: 2 additions & 2 deletions cluster-autoscaler/utils/taints/taints_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bf31ca

Please sign in to comment.