Skip to content

Commit

Permalink
Remove maps.Copy usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrwrotniak committed Nov 9, 2023
1 parent 51dec6e commit f2b8272
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cluster-autoscaler/utils/taints/taints.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package taints
import (
"context"
"fmt"
"maps"
"strconv"
"strings"
"time"
Expand Down Expand Up @@ -117,7 +116,10 @@ func NewTaintConfig(opts config.AutoscalingOptions) TaintConfig {
ToBeDeletedTaint: true,
DeletionCandidateTaint: true,
}
maps.Copy(explicitlyReportedTaints, NodeConditionTaints)

for k, v := range NodeConditionTaints {
explicitlyReportedTaints[k] = v
}

return TaintConfig{
startupTaints: startupTaints,
Expand Down

0 comments on commit f2b8272

Please sign in to comment.