Skip to content

Commit c214c6a

Browse files
committed
Fix lint errors
1 parent 24fe2f6 commit c214c6a

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

api/v1beta1/conversion.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package v1beta1
1919
import (
2020
"context"
2121
"fmt"
22+
2223
"github.com/apache/cloudstack-go/v2/cloudstack"
2324
"github.com/pkg/errors"
2425
corev1 "k8s.io/api/core/v1"
@@ -39,8 +40,6 @@ func Convert_v1beta1_CloudStackCluster_To_v1beta2_CloudStackCluster(in *CloudSta
3940
out.Spec = v1beta2.CloudStackClusterSpec{
4041
ControlPlaneEndpoint: in.Spec.ControlPlaneEndpoint,
4142
FailureDomains: failureDomains,
42-
Account: in.Spec.Account,
43-
Domain: in.Spec.Domain,
4443
}
4544

4645
out.Status = v1beta2.CloudStackClusterStatus{
@@ -56,8 +55,6 @@ func Convert_v1beta2_CloudStackCluster_To_v1beta1_CloudStackCluster(in *v1beta2.
5655
out.Spec = CloudStackClusterSpec{
5756
Zones: getZones(in),
5857
ControlPlaneEndpoint: in.Spec.ControlPlaneEndpoint,
59-
Account: in.Spec.Account,
60-
Domain: in.Spec.Domain,
6158
}
6259

6360
out.Status = CloudStackClusterStatus{

controllers/utils/base_reconciler.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ func (r *ReconciliationRunner) DeleteOwnedObjects(gvks ...schema.GroupVersionKin
263263

264264
// Filter objects not actually owned by reconciliation subject via owner reference UID.
265265
for _, pOwned := range potentiallyOnwedObjs.Items {
266-
_pOwned := pOwned
267266
refs := pOwned.GetOwnerReferences()
268267
for _, ref := range refs {
269268
if ref.UID == r.ReconciliationSubject.GetUID() {

controllers/utils/failuredomains.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ func (r *ReconciliationRunner) RemoveExtraneousFailureDomains(fds *infrav1.Cloud
8787

8888
// Send a deletion request for each FailureDomain no speced for.
8989
for _, fd := range fds.Items {
90-
_fd := fd
9190
if _, present := fdPresenceByName[fd.Name]; !present {
9291
toDelete := fd
9392
if err := r.K8sClient.Delete(r.RequestCtx, &toDelete); err != nil {

0 commit comments

Comments
 (0)