Skip to content

Commit

Permalink
Merge pull request #6263 from piotrwrotniak/patch-1
Browse files Browse the repository at this point in the history
Remove maps.Copy usage.
  • Loading branch information
k8s-ci-robot authored Nov 9, 2023
2 parents 51dec6e + f2b8272 commit fe403c2
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 fe403c2

Please sign in to comment.