Skip to content

Commit

Permalink
fix: add IgnoreUnexported to Node Taints comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
afarbos committed Dec 20, 2024
1 parent f24b413 commit 0592d96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloud/services/container/nodepools/reconcile.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ func (s *Service) checkDiffAndPrepareUpdateConfig(existingNodePool *containerpb.
}
}
// Kubernetes taints
if !cmp.Equal(desiredNodePool.GetConfig().GetTaints(), existingNodePool.GetConfig().GetTaints()) {
if !cmp.Equal(desiredNodePool.GetConfig().GetTaints(), existingNodePool.GetConfig().GetTaints(), cmpopts.IgnoreUnexported(containerpb.NodeTaint{})) {
needUpdate = true
updateNodePoolRequest.Taints = &containerpb.NodeTaints{
Taints: desiredNodePool.GetConfig().GetTaints(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,7 @@ spec:
scaling:
minCount: ${GKE_MACHINE_POOL_MIN}
maxCount: ${GKE_MACHINE_POOL_MAX}

kubernetesTaints:
- key: "key1"
value: "value1"
effect: "NoSchedule"

0 comments on commit 0592d96

Please sign in to comment.