Commit b9d6f3a
committed
OCPBUGS-88035: Set cluster ownership tag on AWSCluster
Set the kubernetes.io/cluster/<infraID>=owned tag on the AWSCluster
object via AdditionalTags so that CAPI-created AWS resources are
visible to the installer's destroy logic. Also propagate user-defined
resource tags from Infrastructure.Status.PlatformStatus.AWS.ResourceTags
to match MAPI behaviour.
Without this tag, openshift-install destroy cluster cannot identify
CAPI-created resources (VMs, volumes, etc.) and they are leaked.
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>1 parent 05c113e commit b9d6f3a
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
105 | 115 | | |
106 | 116 | | |
107 | 117 | | |
| |||
126 | 136 | | |
127 | 137 | | |
128 | 138 | | |
| 139 | + | |
129 | 140 | | |
130 | 141 | | |
131 | 142 | | |
| |||
0 commit comments