Skip to content

Commit 5c96e82

Browse files
authored
Merge pull request #2025 from zmalik/zm/test-fix-tag-match
use aks-managed-poolName also for vmss match
2 parents dc0c3fa + a4a800a commit 5c96e82

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)