1
1
/*
2
- Copyright 2023 The Kubernetes Authors.
2
+ Copyright 2025 The Kubernetes Authors.
3
3
4
4
Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
6
6
You may obtain a copy of the License at
7
7
8
- http://www.apache.org/licenses/LICENSE-2.0
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
9
10
10
Unless required by applicable law or agreed to in writing, software
11
11
distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,7 +19,6 @@ package v1beta2
19
19
import (
20
20
corev1 "k8s.io/api/core/v1"
21
21
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
22
-
23
22
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
24
23
25
24
infrav1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1"
@@ -124,7 +123,7 @@ type AROPlatformProfileControlPlane struct {
124
123
ResourceGroup string `json:"resourceGroup,omitempty"`
125
124
126
125
// 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"`
128
127
129
128
// Azure subnet id
130
129
Subnet string `json:"subnet,omitempty"`
@@ -142,6 +141,7 @@ type AROPlatformProfileControlPlane struct {
142
141
ManagedIdentities ManagedIdentities `json:"managedIdentities,omitempty"`
143
142
}
144
143
144
+ // ManagedIdentities represents managed identities for the Azure platform configuration.
145
145
type ManagedIdentities struct {
146
146
// CreateAROHCPManagedIdentities is used to create the required ARO-HCP managed identities if not provided.
147
147
// It will create UserAssignedIdentity CR for each required managed identity. Default is false.
@@ -157,12 +157,13 @@ type ManagedIdentities struct {
157
157
ServiceManagedIdentity string `json:"serviceManagedIdentity,omitempty"`
158
158
}
159
159
160
+ // ControlPlaneOperators represents managed identities for the ControlPlane.
160
161
type ControlPlaneOperators struct {
161
162
// ControlPlaneManagedIdentities "control-plane" Microsoft.ManagedIdentity/userAssignedIdentities
162
163
ControlPlaneManagedIdentities string `json:"controlPlaneOperatorsManagedIdentities,omitempty"`
163
164
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"`
166
167
167
168
// CloudControllerManagerManagedIdentities "cloud-controller-manager" Microsoft.ManagedIdentity/userAssignedIdentities
168
169
CloudControllerManagerManagedIdentities string `json:"cloudControllerManager,omitempty"`
@@ -186,6 +187,7 @@ type ControlPlaneOperators struct {
186
187
KmsManagedIdentities string `json:"kmsManagedIdentities,omitempty"`
187
188
}
188
189
190
+ // DataPlaneOperators represents managed identities for the DataPlane.
189
191
type DataPlaneOperators struct {
190
192
// DiskCsiDriverManagedIdentities "disk-csi-driver" Microsoft.ManagedIdentity/userAssignedIdentities
191
193
DiskCsiDriverManagedIdentities string `json:"diskCsiDriverManagedIdentities,omitempty"`
@@ -258,8 +260,8 @@ type AROControlPlaneStatus struct {
258
260
// ConsoleURL is the url for the openshift console.
259
261
ConsoleURL string `json:"consoleURL,omitempty"`
260
262
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"`
263
265
264
266
// ARO-HCP OpenShift semantic version, for example "4.20.0".
265
267
Version string `json:"version"`
0 commit comments