Skip to content

Commit 1df0049

Browse files
Merge pull request #8179 from r4f4/capi-aws-destroy-capi
CORS-2905: capi/aws: destroy CAPA resources
2 parents 8769290 + 16356ae commit 1df0049

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/asset/cluster/aws/aws.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import (
2020
func Metadata(clusterID, infraID string, config *types.InstallConfig) *awstypes.Metadata {
2121
return &awstypes.Metadata{
2222
Region: config.Platform.AWS.Region,
23-
Identifier: []map[string]string{{
24-
fmt.Sprintf("kubernetes.io/cluster/%s", infraID): "owned",
25-
}, {
26-
"openshiftClusterID": clusterID,
27-
}},
23+
Identifier: []map[string]string{
24+
{fmt.Sprintf("kubernetes.io/cluster/%s", infraID): "owned"},
25+
{"openshiftClusterID": clusterID},
26+
{fmt.Sprintf("sigs.k8s.io/cluster-api-provider-aws/cluster/%s", infraID): "owned"},
27+
},
2828
ServiceEndpoints: config.AWS.ServiceEndpoints,
2929
ClusterDomain: config.ClusterDomain(),
3030
HostedZoneRole: config.AWS.HostedZoneRole,

0 commit comments

Comments
 (0)