Skip to content

Commit 97e76db

Browse files
author
Joshua Reed
committed
Mild cleanup.
1 parent 8c9c3cf commit 97e76db

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

api/v1beta2/cloudstackcluster_types.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ import (
2222
)
2323

2424
const (
25-
ClusterFinalizer = "cloudstackcluster.infrastructure.cluster.x-k8s.io"
26-
CloudStackClusterLabelName = "cloudstackcluster.infrastructure.cluster.x-k8s.io/name"
25+
ClusterFinalizer = "cloudstackcluster.infrastructure.cluster.x-k8s.io"
2726
)
2827

2928
// CloudStackClusterSpec defines the desired state of CloudStackCluster.

controllers/cloudstackfailuredomain_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (r *CloudStackFailureDomainReconciliationRunner) ClearMachines() (ctrl.Resu
143143
}
144144
}
145145
if len(machines.Items) > 0 {
146-
return r.RequeueWithMessage("FailureDomain still has machine in it.")
146+
return r.RequeueWithMessage("FailureDomain still has machine(s) in it.")
147147
}
148148
return ctrl.Result{}, nil
149149
}

controllers/utils/base_reconciler.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,7 @@ func (r *ReconciliationRunner) NewChildObjectMeta(name string) metav1.ObjectMeta
487487
return metav1.ObjectMeta{
488488
Name: strings.ToLower(name),
489489
Namespace: r.Request.Namespace,
490-
Labels: map[string]string{clusterv1.ClusterLabelName: r.CAPICluster.Name,
491-
infrav1.CloudStackClusterLabelName: r.CAPICluster.Name},
490+
Labels: map[string]string{clusterv1.ClusterLabelName: r.CAPICluster.Name},
492491
OwnerReferences: []metav1.OwnerReference{
493492
*metav1.NewControllerRef(r.ReconciliationSubject, ownerGVK),
494493
},

0 commit comments

Comments
 (0)