Skip to content

Commit 3d7d507

Browse files
authored
Merge pull request #3053 from k8s-infra-cherrypick-robot/cherry-pick-3050-to-release-1.7
[release-1.7] fix unnecessary reconciles on AKS node taints
2 parents e43d7db + b5892d0 commit 3d7d507

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)