Skip to content

Commit 88a5754

Browse files
committed
ARO ... define structures
1 parent 1d2c092 commit 88a5754

27 files changed

+2457
-1
lines changed

PROJECT

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ resources:
4747
- group: infrastructure
4848
version: v1beta1
4949
kind: AzureMachinePoolMachine
50+
- group: infrastructure
51+
version: v1beta1
52+
kind: AroMachinePool
53+
- group: infrastructure
54+
version: v1beta1
55+
kind: AROCluster
56+
- group: infrastructure
57+
version: v1beta1
58+
kind: AROControlPlane

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

Lines changed: 402 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.16.1
7+
name: aroclusters.infrastructure.cluster.x-k8s.io
8+
spec:
9+
group: infrastructure.cluster.x-k8s.io
10+
names:
11+
categories:
12+
- cluster-api
13+
kind: AROCluster
14+
listKind: AROClusterList
15+
plural: aroclusters
16+
shortNames:
17+
- aroc
18+
singular: arocluster
19+
scope: Namespaced
20+
versions:
21+
- additionalPrinterColumns:
22+
- description: Cluster to which this AroManagedControl belongs
23+
jsonPath: .metadata.labels.cluster\.x-k8s\.io/cluster-name
24+
name: Cluster
25+
type: string
26+
- description: Control plane infrastructure is ready for worker nodes
27+
jsonPath: .status.ready
28+
name: Ready
29+
type: string
30+
- description: API Endpoint
31+
jsonPath: .spec.controlPlaneEndpoint.host
32+
name: Endpoint
33+
priority: 1
34+
type: string
35+
name: v1beta2
36+
schema:
37+
openAPIV3Schema:
38+
description: AROCluster is the Schema for the AROClusters API.
39+
properties:
40+
apiVersion:
41+
description: |-
42+
APIVersion defines the versioned schema of this representation of an object.
43+
Servers should convert recognized schemas to the latest internal value, and
44+
may reject unrecognized values.
45+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
46+
type: string
47+
kind:
48+
description: |-
49+
Kind is a string value representing the REST resource this object represents.
50+
Servers may infer this from the endpoint the client submits requests to.
51+
Cannot be updated.
52+
In CamelCase.
53+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
54+
type: string
55+
metadata:
56+
type: object
57+
spec:
58+
description: AROClusterSpec defines the desired state of AROCluster.
59+
properties:
60+
controlPlaneEndpoint:
61+
description: ControlPlaneEndpoint represents the endpoint used to
62+
communicate with the control plane.
63+
properties:
64+
host:
65+
description: host is the hostname on which the API server is serving.
66+
maxLength: 512
67+
type: string
68+
port:
69+
description: port is the port on which the API server is serving.
70+
format: int32
71+
type: integer
72+
required:
73+
- host
74+
- port
75+
type: object
76+
type: object
77+
status:
78+
description: AROClusterStatus defines the observed state of AROCluster.
79+
properties:
80+
conditions:
81+
description: Conditions define the current service state of the AROCluster.
82+
items:
83+
description: Condition defines an observation of a Cluster API resource
84+
operational state.
85+
properties:
86+
lastTransitionTime:
87+
description: |-
88+
lastTransitionTime is the last time the condition transitioned from one status to another.
89+
This should be when the underlying condition changed. If that is not known, then using the time when
90+
the API field changed is acceptable.
91+
format: date-time
92+
type: string
93+
message:
94+
description: |-
95+
message is a human readable message indicating details about the transition.
96+
This field may be empty.
97+
maxLength: 10240
98+
minLength: 1
99+
type: string
100+
reason:
101+
description: |-
102+
reason is the reason for the condition's last transition in CamelCase.
103+
The specific API may choose whether or not this field is considered a guaranteed API.
104+
This field may be empty.
105+
maxLength: 256
106+
minLength: 1
107+
type: string
108+
severity:
109+
description: |-
110+
severity provides an explicit classification of Reason code, so the users or machines can immediately
111+
understand the current situation and act accordingly.
112+
The Severity field MUST be set only when Status=False.
113+
maxLength: 32
114+
type: string
115+
status:
116+
description: status of the condition, one of True, False, Unknown.
117+
type: string
118+
type:
119+
description: |-
120+
type of condition in CamelCase or in foo.example.com/CamelCase.
121+
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions
122+
can be useful (see .node.status.conditions), the ability to deconflict is important.
123+
maxLength: 256
124+
minLength: 1
125+
type: string
126+
required:
127+
- lastTransitionTime
128+
- status
129+
- type
130+
type: object
131+
type: array
132+
failureDomains:
133+
additionalProperties:
134+
description: |-
135+
FailureDomainSpec is the Schema for Cluster API failure domains.
136+
It allows controllers to understand how many failure domains a cluster can optionally span across.
137+
properties:
138+
attributes:
139+
additionalProperties:
140+
type: string
141+
description: attributes is a free form map of attributes an
142+
infrastructure provider might use or require.
143+
type: object
144+
controlPlane:
145+
description: controlPlane determines if this failure domain
146+
is suitable for use by control plane machines.
147+
type: boolean
148+
type: object
149+
description: FailureDomains specifies a list fo available availability
150+
zones that can be used
151+
type: object
152+
ready:
153+
description: Ready is when the AROControlPlane has a API server URL.
154+
type: boolean
155+
type: object
156+
type: object
157+
served: true
158+
storage: true
159+
subresources:
160+
status: {}

0 commit comments

Comments
 (0)