11/*
2- Copyright 2023 The Kubernetes Authors.
2+ Copyright 2025 The Kubernetes Authors.
33
44Licensed under the Apache License, Version 2.0 (the "License");
55you may not use this file except in compliance with the License.
66You 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
1010Unless required by applicable law or agreed to in writing, software
1111distributed under the License is distributed on an "AS IS" BASIS,
@@ -19,7 +19,6 @@ package v1beta2
1919import (
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.
145145type 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.
160161type 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.
189191type 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"`
0 commit comments