Skip to content

Commit 0820424

Browse files
committed
ARO - reorganize packages, updates based on proposal
1 parent 7754f9f commit 0820424

19 files changed

+967
-580
lines changed

config/crd/bases/infrastructure.cluster.x-k8s.io_aroclusters.yaml

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,91 @@ spec:
7373
- host
7474
- port
7575
type: object
76+
resources:
77+
description: Resources are embedded ARO resources to be managed by
78+
this resource.
79+
items:
80+
type: object
81+
x-kubernetes-preserve-unknown-fields: true
82+
type: array
83+
secrets:
84+
description: 'Secrets: configures where to place Azure generated secrets.'
85+
properties:
86+
adminCredentials:
87+
description: |-
88+
AdminCredentials: indicates where the AdminCredentials secret should be placed. If omitted, the secret will not be
89+
retrieved from Azure.
90+
properties:
91+
key:
92+
description: Key is the key in the Kubernetes secret being
93+
referenced.
94+
type: string
95+
name:
96+
description: |-
97+
Name is the name of the Kubernetes secret to write to.
98+
The secret will be created in the same namespace as the resource.
99+
type: string
100+
required:
101+
- key
102+
- name
103+
type: object
104+
userCredentials:
105+
description: |-
106+
UserCredentials: indicates where the UserCredentials secret should be placed. If omitted, the secret will not be
107+
retrieved from Azure.
108+
properties:
109+
key:
110+
description: Key is the key in the Kubernetes secret being
111+
referenced.
112+
type: string
113+
name:
114+
description: |-
115+
Name is the name of the Kubernetes secret to write to.
116+
The secret will be created in the same namespace as the resource.
117+
type: string
118+
required:
119+
- key
120+
- name
121+
type: object
122+
type: object
76123
type: object
77124
status:
78125
description: AROClusterStatus defines the observed state of AROCluster.
79126
properties:
127+
aadProfile:
128+
description: 'AadProfile: The Azure Active Directory configuration.'
129+
properties:
130+
adminGroupObjectIDs:
131+
description: 'AdminGroupObjectIDs: The list of AAD group object
132+
IDs that will have admin role of the cluster.'
133+
items:
134+
type: string
135+
type: array
136+
clientAppID:
137+
description: 'ClientAppID: (DEPRECATED) The client AAD application
138+
ID. Learn more at https://aka.ms/aks/aad-legacy.'
139+
type: string
140+
enableAzureRBAC:
141+
description: 'EnableAzureRBAC: Whether to enable Azure RBAC for
142+
Kubernetes authorization.'
143+
type: boolean
144+
managed:
145+
description: 'Managed: Whether to enable managed AAD.'
146+
type: boolean
147+
serverAppID:
148+
description: 'ServerAppID: (DEPRECATED) The server AAD application
149+
ID. Learn more at https://aka.ms/aks/aad-legacy.'
150+
type: string
151+
serverAppSecret:
152+
description: 'ServerAppSecret: (DEPRECATED) The server AAD application
153+
secret. Learn more at https://aka.ms/aks/aad-legacy.'
154+
type: string
155+
tenantID:
156+
description: |-
157+
TenantID: The AAD tenant ID to use for authentication. If not specified, will use the tenant of the deployment
158+
subscription.
159+
type: string
160+
type: object
80161
conditions:
81162
description: Conditions define the current service state of the AROCluster.
82163
items:
@@ -129,6 +210,14 @@ spec:
129210
- type
130211
type: object
131212
type: array
213+
currentKubernetesVersion:
214+
type: string
215+
disableLocalAccounts:
216+
description: |-
217+
DisableLocalAccounts: If set to true, getting static credentials will be disabled for this cluster. This must only be
218+
used on Managed Clusters that are AAD enabled. For more details see [disable local
219+
accounts](https://docs.microsoft.com/azure/aks/managed-aad#disable-local-accounts-preview).
220+
type: boolean
132221
failureDomains:
133222
additionalProperties:
134223
description: |-
@@ -149,9 +238,80 @@ spec:
149238
description: FailureDomains specifies a list fo available availability
150239
zones that can be used
151240
type: object
241+
fqdn:
242+
description: 'Fqdn: The FQDN of the master pool.'
243+
type: string
244+
longRunningOperationStates:
245+
description: |-
246+
LongRunningOperationStates saves the state for ARO long-running operations so they can be continued on the
247+
next reconciliation loop.
248+
items:
249+
description: Future contains the data needed for an Azure long-running
250+
operation to continue across reconcile loops.
251+
properties:
252+
data:
253+
description: Data is the base64 url encoded json Azure AutoRest
254+
Future.
255+
type: string
256+
name:
257+
description: |-
258+
Name is the name of the Azure resource.
259+
Together with the service name, this forms the unique identifier for the future.
260+
type: string
261+
resourceGroup:
262+
description: ResourceGroup is the Azure resource group for the
263+
resource.
264+
type: string
265+
serviceName:
266+
description: |-
267+
ServiceName is the name of the Azure service.
268+
Together with the name of the resource, this forms the unique identifier for the future.
269+
type: string
270+
type:
271+
description: Type describes the type of future, such as update,
272+
create, delete, etc.
273+
type: string
274+
required:
275+
- data
276+
- name
277+
- serviceName
278+
- type
279+
type: object
280+
type: array
281+
privateFQDN:
282+
description: 'PrivateFQDN: The FQDN of private cluster.'
283+
type: string
152284
ready:
153285
description: Ready is when the AROControlPlane has a API server URL.
154286
type: boolean
287+
resources:
288+
items:
289+
description: ResourceStatus represents the status of a resource.
290+
properties:
291+
ready:
292+
type: boolean
293+
resource:
294+
description: StatusResource is a handle to a resource.
295+
properties:
296+
group:
297+
type: string
298+
kind:
299+
type: string
300+
name:
301+
type: string
302+
version:
303+
type: string
304+
required:
305+
- group
306+
- kind
307+
- name
308+
- version
309+
type: object
310+
required:
311+
- ready
312+
- resource
313+
type: object
314+
type: array
155315
type: object
156316
type: object
157317
served: true

config/crd/bases/infrastructure.cluster.x-k8s.io_arocontrolplanes.yaml

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ spec:
195195
description: ControlPlaneManagedIdentities "control-plane"
196196
Microsoft.ManagedIdentity/userAssignedIdentities
197197
type: string
198-
diskCsiDrivereManagedIdentities:
199-
description: DiskCsiDrivereManagedIdentities "disk-csi-driver"
198+
diskCsiDriverManagedIdentities:
199+
description: DiskCsiDriverManagedIdentities "disk-csi-driver"
200200
Microsoft.ManagedIdentity/userAssignedIdentities
201201
type: string
202202
fileCsiDriverManagedIdentities:
@@ -222,8 +222,8 @@ spec:
222222
dataPlaneOperators:
223223
description: DataPlaneOperators ref to Microsoft.ManagedIdentity/userAssignedIdentities
224224
properties:
225-
diskCsiDrivereManagedIdentities:
226-
description: DiskCsiDrivereManagedIdentities "disk-csi-driver"
225+
diskCsiDriverManagedIdentities:
226+
description: DiskCsiDriverManagedIdentities "disk-csi-driver"
227227
Microsoft.ManagedIdentity/userAssignedIdentities
228228
type: string
229229
fileCsiDriverManagedIdentities:
@@ -260,6 +260,13 @@ spec:
260260
and cannot be set with Subnet.
261261
type: string
262262
type: object
263+
resources:
264+
description: Resources are embedded ARO resources to be managed by
265+
this resource.
266+
items:
267+
type: object
268+
x-kubernetes-preserve-unknown-fields: true
269+
type: array
263270
version:
264271
description: OpenShift semantic version, for example "4.14.5".
265272
type: string
@@ -354,6 +361,22 @@ spec:
354361
consoleURL:
355362
description: ConsoleURL is the url for the openshift console.
356363
type: string
364+
controlPlaneEndpoint:
365+
description: ControlPlaneEndpoint represents the endpoint for the
366+
cluster's API server.
367+
properties:
368+
host:
369+
description: host is the hostname on which the API server is serving.
370+
maxLength: 512
371+
type: string
372+
port:
373+
description: port is the port on which the API server is serving.
374+
format: int32
375+
type: integer
376+
required:
377+
- host
378+
- port
379+
type: object
357380
externalManagedControlPlane:
358381
default: true
359382
description: |-
@@ -384,6 +407,34 @@ spec:
384407
description: Ready denotes that the AROControlPlane API Server is
385408
ready to receive requests.
386409
type: boolean
410+
resources:
411+
items:
412+
description: ResourceStatus represents the status of a resource.
413+
properties:
414+
ready:
415+
type: boolean
416+
resource:
417+
description: StatusResource is a handle to a resource.
418+
properties:
419+
group:
420+
type: string
421+
kind:
422+
type: string
423+
name:
424+
type: string
425+
version:
426+
type: string
427+
required:
428+
- group
429+
- kind
430+
- name
431+
- version
432+
type: object
433+
required:
434+
- ready
435+
- resource
436+
type: object
437+
type: array
387438
version:
388439
description: ARO-HCP OpenShift semantic version, for example "4.20.0".
389440
type: string

config/crd/kustomization.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ patches:
5353
- path: patches/cainjection_in_azuremachinetemplates.yaml
5454
- path: patches/cainjection_in_azuremachinepools.yaml
5555
- path: patches/cainjection_in_azuremachinepoolmachines.yaml
56+
- path: patches/cainjection_in_aroclusters.yaml
57+
- path: patches/cainjection_in_arocontrolplanes.yaml
58+
- path: patches/cainjection_in_aromachinepools.yaml
5659
# - path: patches/cainjection_in_azuremanagedmachinepools.yaml
5760
# - path: patches/cainjection_in_azuremanagedclusters.yaml
5861
# - path: patches/cainjection_in_azuremanagedcontrolplanes.yaml
@@ -77,9 +80,9 @@ patches:
7780
- path: patches/capicontract_in_azureasomanagedcontrolplanetemplates.yaml
7881
- path: patches/capicontract_in_azureasomanagedmachinepools.yaml
7982
- path: patches/capicontract_in_azureasomanagedmachinepooltemplates.yaml
80-
- path: patches/cainjection_in_aroclusters.yaml
81-
- path: patches/cainjection_in_arocontrolplanes.yaml
82-
- path: patches/cainjection_in_aromachinepools.yaml
83+
- path: patches/capicontract_in_aroclusters.yaml
84+
- path: patches/capicontract_in_arocontrolplanes.yaml
85+
- path: patches/capicontract_in_aromachinepools.yaml
8386

8487
# the following config is for teaching kustomize how to do kustomization for CRDs.
8588
configurations:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: aroclusters.infrastructure.cluster.x-k8s.io
5+
labels:
6+
cluster.x-k8s.io/v1beta1: v1beta1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: arocontrolplanes.infrastructure.cluster.x-k8s.io
5+
labels:
6+
cluster.x-k8s.io/v1beta1: v1beta1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: aromachinepools.infrastructure.cluster.x-k8s.io
5+
labels:
6+
cluster.x-k8s.io/v1beta1: v1beta1

config/rbac/role.yaml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,32 @@ rules:
127127
- get
128128
- list
129129
- watch
130+
- apiGroups:
131+
- controlplane.cluster.x-k8s.io
132+
resources:
133+
- arocontrolplanes
134+
verbs:
135+
- create
136+
- delete
137+
- get
138+
- list
139+
- patch
140+
- update
141+
- watch
142+
- apiGroups:
143+
- controlplane.cluster.x-k8s.io
144+
resources:
145+
- arocontrolplanes/finalizers
146+
verbs:
147+
- update
148+
- apiGroups:
149+
- controlplane.cluster.x-k8s.io
150+
resources:
151+
- arocontrolplanes/status
152+
verbs:
153+
- get
154+
- patch
155+
- update
130156
- apiGroups:
131157
- ""
132158
resources:
@@ -139,7 +165,6 @@ rules:
139165
- infrastructure.cluster.x-k8s.io
140166
resources:
141167
- aroclusters
142-
- arocontrolplanes
143168
- aromachinepools
144169
- azureasomanagedclusters
145170
- azureasomanagedcontrolplanes
@@ -165,7 +190,6 @@ rules:
165190
- infrastructure.cluster.x-k8s.io
166191
resources:
167192
- aroclusters/finalizers
168-
- arocontrolplanes/finalizers
169193
- aromachinepools/finalizers
170194
- azureasomanagedclusters/finalizers
171195
- azureasomanagedcontrolplanes/finalizers
@@ -176,7 +200,6 @@ rules:
176200
- infrastructure.cluster.x-k8s.io
177201
resources:
178202
- aroclusters/status
179-
- arocontrolplanes/status
180203
- aromachinepools/status
181204
- azureasomanagedclusters/status
182205
- azureasomanagedcontrolplanes/status

0 commit comments

Comments
 (0)