Skip to content

Commit 61fcf75

Browse files
authored
Merge pull request #2027 from k8s-infra-cherrypick-robot/cherry-pick-2025-to-release-1.1
[release-1.1] use aks-managed-poolName also for vmss match
2 parents 3cf5da0 + 7fb9da7 commit 61fcf75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exp/controllers/azuremanagedmachinepool_reconciler.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,11 @@ func (s *azureManagedMachinePoolService) Reconcile(ctx context.Context) error {
116116
match = &ss
117117
break
118118
}
119+
120+
if ss.Tags["aks-managed-poolName"] != nil && *ss.Tags["aks-managed-poolName"] == agentPoolName {
121+
match = &ss
122+
break
123+
}
119124
}
120125

121126
if match == nil {

0 commit comments

Comments
 (0)