Commit 16356ae
committed
CORS-2905: capi/aws: destroy CAPA security groups
Because of how the CCM selects a Load Balancer security group by using the
"kubernetes.io/cluster/<infraID>: owned" tag, CAPA removes that tag from
all the other security groups [1].
That means that when the Installer is looking for resources to delete
with that tag, it will never find those security groups and they'll stay
behind. To avoid that, let's also search for resources with the
"sigs.k8s.io/cluster-api-provider-aws/cluster/<infraID>: owned" tag
during cluster destroy.
[1] kubernetes-sigs/cluster-api-provider-aws#45711 parent 0eafdbb commit 16356ae
1 file changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments