Skip to content

Commit b5892d0

Browse files
nojnhuhk8s-infra-cherrypick-robot
authored andcommitted
fix unnecessary reconciles on AKS node taints
1 parent e43d7db commit b5892d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

azure/services/agentpools/spec.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ func (s *AgentPoolSpec) Parameters(ctx context.Context, existing interface{}) (p
204204
Tags: converters.TagsToMap(s.AdditionalTags),
205205
},
206206
}
207+
if len(*normalizedProfile.NodeTaints) == 0 {
208+
normalizedProfile.NodeTaints = nil
209+
}
207210

208211
if s.KubeletConfig != nil {
209212
normalizedProfile.KubeletConfig = &containerservice.KubeletConfig{

0 commit comments

Comments
 (0)