Skip to content

Commit 69dd5bd

Browse files
author
Joshua Reed
committed
Removed use of clustername field.
1 parent 1de7a5d commit 69dd5bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

controllers/utils/base_reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ func (r *ReconciliationRunner) NewChildObjectMeta(name string) metav1.ObjectMeta
488488
Name: strings.ToLower(name),
489489
Namespace: r.Request.Namespace,
490490
Labels: map[string]string{clusterv1.ClusterLabelName: r.CAPICluster.Name,
491-
infrav1.CloudStackClusterLabelName: r.CSCluster.ClusterName},
491+
infrav1.CloudStackClusterLabelName: r.CAPICluster.Name},
492492
OwnerReferences: []metav1.OwnerReference{
493493
*metav1.NewControllerRef(r.ReconciliationSubject, ownerGVK),
494494
},

controllers/utils/failuredomains.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (r *ReconciliationRunner) RemoveExtraneousFailureDomains(fds *infrav1.Cloud
7979
fdPresenceByName := map[string]bool{}
8080
for _, fdSpec := range r.CSCluster.Spec.FailureDomains {
8181
name := fdSpec.Name
82-
if !strings.HasSuffix(name, "-"+r.CAPICluster.ClusterName) { // Add cluster name suffix if missing.
82+
if !strings.HasSuffix(name, "-"+r.CAPICluster.Name) { // Add cluster name suffix if missing.
8383
name = name + "-" + r.CAPICluster.Name
8484
}
8585
fdPresenceByName[name] = true

0 commit comments

Comments
 (0)