Skip to content

Commit 0817514

Browse files
committed
fix: add IgnoreUnexported to Node Taints comparison
1 parent ab66a2c commit 0817514

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cloud/services/container/nodepools/reconcile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func (s *Service) checkDiffAndPrepareUpdateConfig(existingNodePool *containerpb.
370370
}
371371
}
372372
// Kubernetes taints
373-
if !cmp.Equal(desiredNodePool.GetConfig().GetTaints(), existingNodePool.GetConfig().GetTaints()) {
373+
if !cmp.Equal(desiredNodePool.GetConfig().GetTaints(), existingNodePool.GetConfig().GetTaints(), cmpopts.IgnoreUnexported(containerpb.NodeTaint{})) {
374374
needUpdate = true
375375
updateNodePoolRequest.Taints = &containerpb.NodeTaints{
376376
Taints: desiredNodePool.GetConfig().GetTaints(),

0 commit comments

Comments
 (0)