Commit 0de7612
committed
OCPBUGS-88037: Set cluster ownership label on GCPCluster
Set the kubernetes-io-cluster-<infraID>=owned label on the GCPCluster
object via AdditionalLabels so that CAPI-created GCP resources are
visible to the installer's destroy logic. GCP label keys only permit
lowercase letters, hyphens, and underscores. Also propagate user-defined
resource labels from Infrastructure.Status.PlatformStatus.GCP.ResourceLabels
and resource manager tags from GCP.ResourceTags to match MAPI behaviour.
Without this label, 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 0de7612
1 file changed
Lines changed: 26 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
76 | 98 | | |
77 | 99 | | |
78 | 100 | | |
| |||
87 | 109 | | |
88 | 110 | | |
89 | 111 | | |
90 | | - | |
91 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
92 | 116 | | |
93 | 117 | | |
94 | 118 | | |
| |||
0 commit comments