Skip to content

Commit 88362d2

Browse files
lukasstocknersebhoss
authored andcommitted
Add missing SlinkyProject/slurm-operator CRDs
Previously only NodeSet was generated, the Cluster link was invalid. This adds the other five existing CRDs.
1 parent bba68d5 commit 88362d2

File tree

14 files changed

+2457
-1
lines changed

14 files changed

+2457
-1
lines changed

code-generator/src/catalog.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3519,8 +3519,12 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
35193519
project_name: "SlinkyProject/slurm-operator",
35203520
license: APACHE_V2,
35213521
urls: &[
3522-
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_clusters.yaml",
3522+
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_accountings.yaml",
3523+
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_controllers.yaml",
3524+
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_loginsets.yaml",
35233525
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_nodesets.yaml",
3526+
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_restapis.yaml",
3527+
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_tokens.yaml",
35243528
],
35253529
ignores: &[],
35263530
},
Lines changed: 247 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,247 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.18.0"
6+
name: "accountings.slinky.slurm.net"
7+
spec:
8+
group: "slinky.slurm.net"
9+
names:
10+
kind: "Accounting"
11+
listKind: "AccountingList"
12+
plural: "accountings"
13+
shortNames:
14+
- "slurmdbd"
15+
singular: "accounting"
16+
scope: "Namespaced"
17+
versions:
18+
- additionalPrinterColumns:
19+
- jsonPath: ".metadata.creationTimestamp"
20+
name: "AGE"
21+
type: "date"
22+
name: "v1beta1"
23+
schema:
24+
openAPIV3Schema:
25+
description: "Accounting is the Schema for the accountings API"
26+
properties:
27+
apiVersion:
28+
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
29+
type: "string"
30+
kind:
31+
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
32+
type: "string"
33+
metadata:
34+
type: "object"
35+
spec:
36+
description: "AccountingSpec defines the desired state of Accounting"
37+
properties:
38+
external:
39+
default: false
40+
description: "external indicates if this component is external to Kubernetes or not.\nIf true, then externalConfig is used and other fields are ignored."
41+
type: "boolean"
42+
externalConfig:
43+
description: "ExternalConfig describes how to communicate with this external component."
44+
properties:
45+
host:
46+
description: "Host defines the hostname or IP address to communicate with."
47+
type: "string"
48+
port:
49+
description: "Port defines the port to communicate over."
50+
type: "integer"
51+
required:
52+
- "host"
53+
- "port"
54+
type: "object"
55+
extraConf:
56+
description: "ExtraConf is appended onto the end of the `slurmdbd.conf` file.\nRef: https://slurm.schedmd.com/slurmdbd.conf.html"
57+
type: "string"
58+
jwtHs256KeyRef:
59+
description: "Slurm `auth/jwt` JWT HS256 key authentication."
60+
properties:
61+
key:
62+
description: "The key of the secret to select from. Must be a valid secret key."
63+
type: "string"
64+
name:
65+
default: ""
66+
description: "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
67+
type: "string"
68+
optional:
69+
description: "Specify whether the Secret or its key must be defined"
70+
type: "boolean"
71+
required:
72+
- "key"
73+
type: "object"
74+
x-kubernetes-map-type: "atomic"
75+
service:
76+
description: "Service defines a template for a Kubernetes Service object."
77+
properties:
78+
metadata:
79+
description: "Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
80+
properties:
81+
annotations:
82+
additionalProperties:
83+
type: "string"
84+
description: "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
85+
type: "object"
86+
labels:
87+
additionalProperties:
88+
type: "string"
89+
description: "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
90+
type: "object"
91+
type: "object"
92+
nodePort:
93+
description: "The port on each node on which this service is exposed when type is\nNodePort or LoadBalancer. Usually assigned by the system. If a value is\nspecified, in-range, and not in use it will be used, otherwise the\noperation will fail. If not specified, a port will be allocated if this\nService requires one. If this field is specified when creating a\nService which does not need it, creation will fail."
94+
type: "integer"
95+
port:
96+
description: "The external service port number."
97+
type: "integer"
98+
spec:
99+
description: "ServiceSpec describes the attributes that a user creates on a service."
100+
type: "object"
101+
x-kubernetes-preserve-unknown-fields: true
102+
type: "object"
103+
slurmKeyRef:
104+
description: "Slurm `auth/slurm` key authentication."
105+
properties:
106+
key:
107+
description: "The key of the secret to select from. Must be a valid secret key."
108+
type: "string"
109+
name:
110+
default: ""
111+
description: "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
112+
type: "string"
113+
optional:
114+
description: "Specify whether the Secret or its key must be defined"
115+
type: "boolean"
116+
required:
117+
- "key"
118+
type: "object"
119+
x-kubernetes-map-type: "atomic"
120+
slurmdbd:
121+
description: "The slurmdbd container configuration.\nSee corev1.Container spec.\nRef: https://github.com/kubernetes/api/blob/master/core/v1/types.go#L2885"
122+
type: "object"
123+
x-kubernetes-preserve-unknown-fields: true
124+
storageConfig:
125+
description: "StorageConfig is the configuration for mysql/mariadb access."
126+
properties:
127+
database:
128+
default: "slurm_acct_db"
129+
description: "Specify the name of the database as the location where accounting records\nare written.\nDefault is \"slurm_acct_db\".\nRef: https://slurm.schedmd.com/slurmdbd.conf.html#OPT_StorageLoc"
130+
type: "string"
131+
host:
132+
description: "Define the name of the host the database is running where we are going to\nstore the data.\nRef: https://slurm.schedmd.com/slurmdbd.conf.html#OPT_StorageHost"
133+
type: "string"
134+
passwordKeyRef:
135+
description: "PasswordKeyRef is a reference to a secret containing the password for the\nuser, specified by username, to access the given database.\nRef: https://slurm.schedmd.com/slurmdbd.conf.html#OPT_StoragePass"
136+
properties:
137+
key:
138+
description: "The key of the secret to select from. Must be a valid secret key."
139+
type: "string"
140+
name:
141+
default: ""
142+
description: "Name of the referent.\nThis field is effectively required, but due to backwards compatibility is\nallowed to be empty. Instances of this type with an empty value here are\nalmost certainly wrong.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
143+
type: "string"
144+
optional:
145+
description: "Specify whether the Secret or its key must be defined"
146+
type: "boolean"
147+
required:
148+
- "key"
149+
type: "object"
150+
x-kubernetes-map-type: "atomic"
151+
port:
152+
default: 3306
153+
description: "The port number that the Slurm Database Daemon (slurmdbd) communicates\nwith the database.\nDefault is 3306.\nRef: https://slurm.schedmd.com/slurmdbd.conf.html#OPT_StoragePort"
154+
type: "integer"
155+
username:
156+
description: "Define the name of the user we are going to connect to the database with\nto store the job accounting data.\nRef: https://slurm.schedmd.com/slurmdbd.conf.html#OPT_StorageUser"
157+
type: "string"
158+
required:
159+
- "host"
160+
- "passwordKeyRef"
161+
type: "object"
162+
template:
163+
description: "Template is the object that describes the pod that will be created if\ninsufficient replicas are detected.\nMore info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template"
164+
properties:
165+
metadata:
166+
description: "Standard object's metadata.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata"
167+
properties:
168+
annotations:
169+
additionalProperties:
170+
type: "string"
171+
description: "Annotations is an unstructured key value map stored with a resource that may be\nset by external tools to store and retrieve arbitrary metadata. They are not\nqueryable and should be preserved when modifying objects.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations"
172+
type: "object"
173+
labels:
174+
additionalProperties:
175+
type: "string"
176+
description: "Map of string keys and values that can be used to organize and categorize\n(scope and select) objects. May match selectors of replication controllers\nand services.\nMore info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels"
177+
type: "object"
178+
type: "object"
179+
spec:
180+
description: "PodSpec is a description of a pod."
181+
type: "object"
182+
x-kubernetes-preserve-unknown-fields: true
183+
type: "object"
184+
type: "object"
185+
x-kubernetes-validations:
186+
- message: "slurmKeyRef must be set when external is false"
187+
rule: "!self.external ? has(self.slurmKeyRef) : true"
188+
- message: "jwtHs256KeyRef must be set when external is false"
189+
rule: "!self.external ? has(self.jwtHs256KeyRef) : true"
190+
- message: "externalConfig must be set when external is true"
191+
rule: "self.external ? has(self.externalConfig) : true"
192+
status:
193+
description: "AccountingStatus defines the observed state of Accounting"
194+
properties:
195+
conditions:
196+
description: "Represents the latest available observations of a Accounting's current state."
197+
items:
198+
description: "Condition contains details for one aspect of the current state of this API Resource."
199+
properties:
200+
lastTransitionTime:
201+
description: "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable."
202+
format: "date-time"
203+
type: "string"
204+
message:
205+
description: "message is a human readable message indicating details about the transition.\nThis may be an empty string."
206+
maxLength: 32768
207+
type: "string"
208+
observedGeneration:
209+
description: "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance."
210+
format: "int64"
211+
minimum: 0.0
212+
type: "integer"
213+
reason:
214+
description: "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty."
215+
maxLength: 1024
216+
minLength: 1
217+
pattern: "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$"
218+
type: "string"
219+
status:
220+
description: "status of the condition, one of True, False, Unknown."
221+
enum:
222+
- "True"
223+
- "False"
224+
- "Unknown"
225+
type: "string"
226+
type:
227+
description: "type of condition in CamelCase or in foo.example.com/CamelCase."
228+
maxLength: 316
229+
pattern: "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$"
230+
type: "string"
231+
required:
232+
- "lastTransitionTime"
233+
- "message"
234+
- "reason"
235+
- "status"
236+
- "type"
237+
type: "object"
238+
type: "array"
239+
x-kubernetes-list-map-keys:
240+
- "type"
241+
x-kubernetes-list-type: "map"
242+
type: "object"
243+
type: "object"
244+
served: true
245+
storage: true
246+
subresources:
247+
status: {}

0 commit comments

Comments
 (0)