Commit 57f24a7
committed
OCPBUGS-88036: Set cluster ownership tag on AzureCluster
Set the kubernetes.io_cluster.<infraID>=owned tag on the AzureCluster
object via AdditionalTags so that CAPI-created Azure resources are
visible to the installer's destroy logic. Azure tag keys do not permit
slashes, so underscores and a dot are used instead. Also propagate
user-defined resource tags from
Infrastructure.Status.PlatformStatus.Azure.ResourceTags to match MAPI
behaviour.
Without this tag, openshift-install destroy cluster cannot identify
CAPI-created resources and they are leaked.
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>1 parent 05c113e commit 57f24a7
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
245 | 255 | | |
246 | 256 | | |
247 | 257 | | |
| |||
257 | 267 | | |
258 | 268 | | |
259 | 269 | | |
| 270 | + | |
260 | 271 | | |
261 | 272 | | |
262 | 273 | | |
| |||
0 commit comments