Skip to content

Commit dff9605

Browse files
committed
ARO - lint-fixes
1 parent 7a67ec5 commit dff9605

File tree

5 files changed

+21
-18
lines changed

5 files changed

+21
-18
lines changed

exp/api/controlplane/v1beta2/arocontrolplane_types.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
Copyright 2023 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,7 +19,6 @@ package v1beta2
1919
import (
2020
corev1 "k8s.io/api/core/v1"
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22-
2322
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
2423

2524
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
@@ -124,7 +123,7 @@ type AROPlatformProfileControlPlane struct {
124123
ResourceGroup string `json:"resourceGroup,omitempty"`
125124

126125
// ResourceGroup Ref name that is used to create the ResourceGroup CR. The ResourceGroupRef must be in the same namespace as the AROControlPlane and cannot be set with ResourceGroup.
127-
ResourceGroupRef string `json:"resourceGroup,omitempty"`
126+
ResourceGroupRef string `json:"resourceGroupRef,omitempty"`
128127

129128
// Azure subnet id
130129
Subnet string `json:"subnet,omitempty"`
@@ -142,6 +141,7 @@ type AROPlatformProfileControlPlane struct {
142141
ManagedIdentities ManagedIdentities `json:"managedIdentities,omitempty"`
143142
}
144143

144+
// ManagedIdentities represents managed identities for the Azure platform configuration.
145145
type ManagedIdentities struct {
146146
// CreateAROHCPManagedIdentities is used to create the required ARO-HCP managed identities if not provided.
147147
// It will create UserAssignedIdentity CR for each required managed identity. Default is false.
@@ -157,12 +157,13 @@ type ManagedIdentities struct {
157157
ServiceManagedIdentity string `json:"serviceManagedIdentity,omitempty"`
158158
}
159159

160+
// ControlPlaneOperators represents managed identities for the ControlPlane.
160161
type ControlPlaneOperators struct {
161162
// ControlPlaneManagedIdentities "control-plane" Microsoft.ManagedIdentity/userAssignedIdentities
162163
ControlPlaneManagedIdentities string `json:"controlPlaneOperatorsManagedIdentities,omitempty"`
163164

164-
// ClusterApiAzureManagedIdentities "cluster-api-azure" Microsoft.ManagedIdentity/userAssignedIdentities
165-
ClusterApiAzureManagedIdentities string `json:"clusterApiAzureManagedIdentities,omitempty"`
165+
// ClusterAPIAzureManagedIdentities "cluster-api-azure" Microsoft.ManagedIdentity/userAssignedIdentities
166+
ClusterAPIAzureManagedIdentities string `json:"clusterApiAzureManagedIdentities,omitempty"`
166167

167168
// CloudControllerManagerManagedIdentities "cloud-controller-manager" Microsoft.ManagedIdentity/userAssignedIdentities
168169
CloudControllerManagerManagedIdentities string `json:"cloudControllerManager,omitempty"`
@@ -186,6 +187,7 @@ type ControlPlaneOperators struct {
186187
KmsManagedIdentities string `json:"kmsManagedIdentities,omitempty"`
187188
}
188189

190+
// DataPlaneOperators represents managed identities for the DataPlane.
189191
type DataPlaneOperators struct {
190192
// DiskCsiDriverManagedIdentities "disk-csi-driver" Microsoft.ManagedIdentity/userAssignedIdentities
191193
DiskCsiDriverManagedIdentities string `json:"diskCsiDriverManagedIdentities,omitempty"`
@@ -258,8 +260,8 @@ type AROControlPlaneStatus struct {
258260
// ConsoleURL is the url for the openshift console.
259261
ConsoleURL string `json:"consoleURL,omitempty"`
260262

261-
// ApiURL is the url for the ARO-HCP openshift cluster api endPoint.
262-
ApiURL string `json:"apiURL,omitempty"`
263+
// APIURL is the url for the ARO-HCP openshift cluster api endPoint.
264+
APIURL string `json:"apiURL,omitempty"`
263265

264266
// ARO-HCP OpenShift semantic version, for example "4.20.0".
265267
Version string `json:"version"`

exp/api/v1beta2/arocluster_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
Copyright 2023 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,7 +18,6 @@ package v1beta2
1818

1919
import (
2020
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
21-
2221
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
2322
)
2423

@@ -63,6 +62,7 @@ type AROCluster struct {
6362
Status AROClusterStatus `json:"status,omitempty"`
6463
}
6564

65+
// AROClusterKind is the kind for AROCluster.
6666
const AROClusterKind = "AROCluster"
6767

6868
// +kubebuilder:object:root=true

exp/api/v1beta2/aromachinepool_types.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
Copyright 2022 The Kubernetes Authors.
2+
Copyright 2025 The Kubernetes Authors.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
66
You may obtain a copy of the License at
77
8-
http://www.apache.org/licenses/LICENSE-2.0
8+
http://www.apache.org/licenses/LICENSE-2.0
99
1010
Unless required by applicable law or agreed to in writing, software
1111
distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,9 +19,9 @@ package v1beta2
1919
import (
2020
corev1 "k8s.io/api/core/v1"
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22+
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
2223

2324
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
24-
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
2525
)
2626

2727
// AROMachinePoolSpec defines the desired state of AROMachinePool.
@@ -175,6 +175,7 @@ type AROMachinePool struct {
175175
Status AROMachinePoolStatus `json:"status,omitempty"`
176176
}
177177

178+
// AROMachinePoolKind is the kind for AROMachinePool.
178179
const AROMachinePoolKind = "AROMachinePool"
179180

180181
// +kubebuilder:object:root=true

exp/controllers/arocluster_controller.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ import (
2020
"context"
2121
"fmt"
2222

23-
infracontroller "sigs.k8s.io/cluster-api-provider-azure/controllers"
24-
infrav2exp "sigs.k8s.io/cluster-api-provider-azure/exp/api/v1beta2"
25-
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
2623
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
2724
"sigs.k8s.io/cluster-api/util"
2825
"sigs.k8s.io/cluster-api/util/predicates"
@@ -31,6 +28,10 @@ import (
3128
"sigs.k8s.io/controller-runtime/pkg/client"
3229
"sigs.k8s.io/controller-runtime/pkg/controller"
3330
"sigs.k8s.io/controller-runtime/pkg/handler"
31+
32+
infracontroller "sigs.k8s.io/cluster-api-provider-azure/controllers"
33+
infrav2exp "sigs.k8s.io/cluster-api-provider-azure/exp/api/v1beta2"
34+
"sigs.k8s.io/cluster-api-provider-azure/util/tele"
3435
)
3536

3637
// AROClusterReconciler reconciles a AROCluster object.

exp/controllers/arocontrolplane_controller.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"context"
2121
"fmt"
2222
corev1 "k8s.io/api/core/v1"
23-
"sigs.k8s.io/cluster-api-provider-azure/exp/api/controlplane/v1beta2"
2423
"sigs.k8s.io/cluster-api/util/predicates"
2524
ctrl "sigs.k8s.io/controller-runtime"
2625
"sigs.k8s.io/controller-runtime/pkg/client"

0 commit comments

Comments
 (0)