Skip to content

Commit d5619a4

Browse files
committed
Adds placement CRD and copy nova CRDs to apis/bases/
- Generated placement.openstack.org_placementapis.yaml - Copied all CRD manifests to apis/bases/ Nova (8) + Placement (1)
1 parent d663e52 commit d5619a4

10 files changed

Lines changed: 6651 additions & 0 deletions

apis/bases/nova.openstack.org_nova.yaml

Lines changed: 1996 additions & 0 deletions
Large diffs are not rendered by default.

apis/bases/nova.openstack.org_novaapis.yaml

Lines changed: 528 additions & 0 deletions
Large diffs are not rendered by default.

apis/bases/nova.openstack.org_novacells.yaml

Lines changed: 1141 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 312 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,312 @@
1+
---
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
annotations:
6+
controller-gen.kubebuilder.io/version: v0.18.0
7+
name: novacomputes.nova.openstack.org
8+
spec:
9+
group: nova.openstack.org
10+
names:
11+
kind: NovaCompute
12+
listKind: NovaComputeList
13+
plural: novacomputes
14+
singular: novacompute
15+
scope: Namespaced
16+
versions:
17+
- additionalPrinterColumns:
18+
- description: NetworkAttachments
19+
jsonPath: .spec.networkAttachments
20+
name: NetworkAttachments
21+
type: string
22+
- description: Status
23+
jsonPath: .status.conditions[0].status
24+
name: Status
25+
type: string
26+
- description: Message
27+
jsonPath: .status.conditions[0].message
28+
name: Message
29+
type: string
30+
name: v1beta1
31+
schema:
32+
openAPIV3Schema:
33+
description: NovaCompute is the Schema for the NovaCompute
34+
properties:
35+
apiVersion:
36+
description: |-
37+
APIVersion defines the versioned schema of this representation of an object.
38+
Servers should convert recognized schemas to the latest internal value, and
39+
may reject unrecognized values.
40+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
41+
type: string
42+
kind:
43+
description: |-
44+
Kind is a string value representing the REST resource this object represents.
45+
Servers may infer this from the endpoint the client submits requests to.
46+
Cannot be updated.
47+
In CamelCase.
48+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
49+
type: string
50+
metadata:
51+
type: object
52+
spec:
53+
description: NovaComputeSpec defines the desired state of NovaCompute
54+
properties:
55+
cellName:
56+
description: CellName is the name of the Nova Cell this NovaCompute
57+
belongs to.
58+
type: string
59+
computeDriver:
60+
description: ComputeDriver defines which driver to use for controlling
61+
virtualization
62+
enum:
63+
- ironic.IronicDriver
64+
- fake.FakeDriver
65+
type: string
66+
computeName:
67+
description: ComputeName - compute name.
68+
type: string
69+
containerImage:
70+
description: The service specific Container Image URL (will be set
71+
to environmental default if empty)
72+
type: string
73+
customServiceConfig:
74+
description: |-
75+
CustomServiceConfig - customize the service config using this parameter to change service defaults,
76+
or overwrite rendered information using raw OpenStack config format. The content gets added to
77+
to /etc/<service>/<service>.conf.d directory as custom.conf file.
78+
type: string
79+
defaultConfigOverwrite:
80+
additionalProperties:
81+
type: string
82+
description: DefaultConfigOverwrite - interface to overwrite default
83+
config files like e.g. provider.yaml
84+
type: object
85+
keystoneAuthURL:
86+
type: string
87+
networkAttachments:
88+
description: NetworkAttachments is a list of NetworkAttachment resource
89+
names to expose the services to the given network
90+
items:
91+
type: string
92+
type: array
93+
nodeSelector:
94+
additionalProperties:
95+
type: string
96+
description: NodeSelector to target subset of worker nodes running
97+
this service
98+
type: object
99+
region:
100+
default: regionOne
101+
description: Region - the region name to use for service endpoint
102+
discovery
103+
type: string
104+
replicas:
105+
default: 1
106+
description: Replicas of the service to run
107+
format: int32
108+
maximum: 32
109+
minimum: 0
110+
type: integer
111+
resources:
112+
description: |-
113+
Resources - Compute Resources required by this service (Limits/Requests).
114+
https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
115+
properties:
116+
claims:
117+
description: |-
118+
Claims lists the names of resources, defined in spec.resourceClaims,
119+
that are used by this container.
120+
121+
This is an alpha field and requires enabling the
122+
DynamicResourceAllocation feature gate.
123+
124+
This field is immutable. It can only be set for containers.
125+
items:
126+
description: ResourceClaim references one entry in PodSpec.ResourceClaims.
127+
properties:
128+
name:
129+
description: |-
130+
Name must match the name of one entry in pod.spec.resourceClaims of
131+
the Pod where this field is used. It makes that resource available
132+
inside a container.
133+
type: string
134+
request:
135+
description: |-
136+
Request is the name chosen for a request in the referenced claim.
137+
If empty, everything from the claim is made available, otherwise
138+
only the result of this request.
139+
type: string
140+
required:
141+
- name
142+
type: object
143+
type: array
144+
x-kubernetes-list-map-keys:
145+
- name
146+
x-kubernetes-list-type: map
147+
limits:
148+
additionalProperties:
149+
anyOf:
150+
- type: integer
151+
- type: string
152+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
153+
x-kubernetes-int-or-string: true
154+
description: |-
155+
Limits describes the maximum amount of compute resources allowed.
156+
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
157+
type: object
158+
requests:
159+
additionalProperties:
160+
anyOf:
161+
- type: integer
162+
- type: string
163+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
164+
x-kubernetes-int-or-string: true
165+
description: |-
166+
Requests describes the minimum amount of compute resources required.
167+
If Requests is omitted for a container, it defaults to Limits if that is explicitly specified,
168+
otherwise to an implementation-defined value. Requests cannot exceed Limits.
169+
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
170+
type: object
171+
type: object
172+
secret:
173+
description: |-
174+
Secret is the name of the Secret instance containing password
175+
information for the NovaCompute service. This secret is expected to be
176+
generated by the nova-operator based on the information passed to the
177+
Nova CR.
178+
type: string
179+
serviceAccount:
180+
description: ServiceAccount - service account name used internally
181+
to provide Nova services the default SA name
182+
type: string
183+
serviceUser:
184+
default: nova
185+
description: |-
186+
ServiceUser - optional username used for this service to register in
187+
keystone
188+
type: string
189+
tls:
190+
description: TLS - Parameters related to the TLS
191+
properties:
192+
caBundleSecretName:
193+
description: CaBundleSecretName - holding the CA certs in a pre-created
194+
bundle file
195+
type: string
196+
type: object
197+
topologyRef:
198+
description: |-
199+
TopologyRef to apply the Topology defined by the associated CR referenced
200+
by name
201+
properties:
202+
name:
203+
description: Name - The Topology CR name that the Service references
204+
type: string
205+
namespace:
206+
description: |-
207+
Namespace - The Namespace to fetch the Topology CR referenced
208+
NOTE: Namespace currently points by default to the same namespace where
209+
the Service is deployed. Customizing the namespace is not supported and
210+
webhooks prevent editing this field to a value different from the
211+
current project
212+
type: string
213+
type: object
214+
required:
215+
- cellName
216+
- computeDriver
217+
- computeName
218+
- keystoneAuthURL
219+
- secret
220+
- serviceAccount
221+
type: object
222+
status:
223+
description: NovaComputeStatus defines the observed state of NovaCompute
224+
properties:
225+
conditions:
226+
description: Conditions
227+
items:
228+
description: Condition defines an observation of a API resource
229+
operational state.
230+
properties:
231+
lastTransitionTime:
232+
description: |-
233+
Last time the condition transitioned from one status to another.
234+
This should be when the underlying condition changed. If that is not known, then using the time when
235+
the API field changed is acceptable.
236+
format: date-time
237+
type: string
238+
message:
239+
description: A human readable message indicating details about
240+
the transition.
241+
type: string
242+
reason:
243+
description: The reason for the condition's last transition
244+
in CamelCase.
245+
type: string
246+
severity:
247+
description: |-
248+
Severity provides a classification of Reason code, so the current situation is immediately
249+
understandable and could act accordingly.
250+
It is meant for situations where Status=False and it should be indicated if it is just
251+
informational, warning (next reconciliation might fix it) or an error (e.g. DB create issue
252+
and no actions to automatically resolve the issue can/should be done).
253+
For conditions where Status=Unknown or Status=True the Severity should be SeverityNone.
254+
type: string
255+
status:
256+
description: Status of the condition, one of True, False, Unknown.
257+
type: string
258+
type:
259+
description: Type of condition in CamelCase.
260+
type: string
261+
required:
262+
- lastTransitionTime
263+
- status
264+
- type
265+
type: object
266+
type: array
267+
hash:
268+
additionalProperties:
269+
type: string
270+
description: Map of hashes to track e.g. job status
271+
type: object
272+
lastAppliedTopology:
273+
description: LastAppliedTopology - the last applied Topology
274+
properties:
275+
name:
276+
description: Name - The Topology CR name that the Service references
277+
type: string
278+
namespace:
279+
description: |-
280+
Namespace - The Namespace to fetch the Topology CR referenced
281+
NOTE: Namespace currently points by default to the same namespace where
282+
the Service is deployed. Customizing the namespace is not supported and
283+
webhooks prevent editing this field to a value different from the
284+
current project
285+
type: string
286+
type: object
287+
networkAttachments:
288+
additionalProperties:
289+
items:
290+
type: string
291+
type: array
292+
description: NetworkAttachments status of the deployment pods
293+
type: object
294+
observedGeneration:
295+
description: |-
296+
ObservedGeneration - the most recent generation observed for this
297+
service. If the observed generation is less than the spec generation,
298+
then the controller has not processed the latest changes injected by
299+
the openstack-operator in the top-level CR (e.g. the ContainerImage)
300+
format: int64
301+
type: integer
302+
readyCount:
303+
description: ReadyCount defines the number of replicas ready from
304+
NovaCompute
305+
format: int32
306+
type: integer
307+
type: object
308+
type: object
309+
served: true
310+
storage: true
311+
subresources:
312+
status: {}

0 commit comments

Comments
 (0)