-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcrds.yaml
More file actions
552 lines (551 loc) · 18.7 KB
/
Copy pathcrds.yaml
File metadata and controls
552 lines (551 loc) · 18.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: buckets.rustfs.com
spec:
group: rustfs.com
names:
categories: []
kind: Bucket
plural: buckets
shortNames:
- rfb
singular: bucket
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.ready
name: Ready
type: boolean
- jsonPath: .status.message
name: Message
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: Auto-generated derived type for BucketSpec via `CustomResource`
properties:
spec:
description: An S3 bucket in RustFS.
properties:
bucketName:
description: Bucket name in RustFS; defaults to the CR name.
nullable: true
type: string
connection:
description: |-
Reference to a RustFS server. Exactly one of `secretRef` / `clusterRef`
must be set (validated at reconcile time).
properties:
clusterRef:
description: Name of a cluster-scoped ClusterConnection.
nullable: true
type: string
secretRef:
description: |-
Name of a Secret in the resource's namespace holding `endpoint`,
`accessKey` and `secretKey` (optional: `region`, `insecure`).
nullable: true
type: string
type: object
deletionPolicy:
default: Delete
description: What happens to the remote resource when the CR is deleted.
enum:
- Delete
- Retain
type: string
lifecycle:
description: |-
Lifecycle rules; unset means unmanaged (the operator never reads or writes
the bucket's lifecycle configuration). An explicitly EMPTY list is not the
same thing: it means "no rules", and removes any configuration present on
the bucket.
items:
description: |-
A single S3 lifecycle rule.
Deliberately a *subset* of the S3 lifecycle spec: expiration by age and
aborting stale multipart uploads. Transitions and non-current-version rules
are omitted — they only make sense with storage tiers / versioning, which
RustFS does not offer, and a CRD field that silently does nothing is worse
than no field.
properties:
abortIncompleteMultipartUploadDays:
description: |-
Abort multipart uploads left incomplete for this many days. Worth setting
on any bucket that takes large writes: aborted parts are invisible to a
normal LIST and still consume the disk.
format: int32
nullable: true
type: integer
expirationDays:
description: Expire objects this many days after creation.
format: int32
nullable: true
type: integer
id:
description: Rule ID, unique within the bucket.
type: string
prefix:
description: Object-key prefix the rule applies to. Unset = the whole bucket.
nullable: true
type: string
status:
default: Enabled
description: Enabled (default) or Disabled.
enum:
- Enabled
- Disabled
type: string
required:
- id
type: object
nullable: true
type: array
quotaBytes:
description: Hard quota in bytes; unset means unmanaged.
format: uint64
minimum: 0.0
nullable: true
type: integer
versioning:
description: Desired versioning state; unset means unmanaged.
nullable: true
type: boolean
required:
- connection
type: object
status:
description: Shared status for all RustFS resources.
nullable: true
properties:
message:
description: Human-readable state or last error.
nullable: true
type: string
observedGeneration:
description: Generation last acted upon.
format: int64
nullable: true
type: integer
ready:
default: false
description: True once the remote resource matches the spec.
type: boolean
type: object
required:
- spec
title: Bucket
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: users.rustfs.com
spec:
group: rustfs.com
names:
categories: []
kind: User
plural: users
shortNames:
- rfu
singular: user
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.ready
name: Ready
type: boolean
- jsonPath: .status.message
name: Message
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: Auto-generated derived type for UserSpec via `CustomResource`
properties:
spec:
description: |-
An IAM user (identity) in RustFS: a username with a password. Policies
attach to the user; applications should authenticate with [`AccessKey`]s
issued for the user rather than the password itself.
properties:
connection:
description: |-
Reference to a RustFS server. Exactly one of `secretRef` / `clusterRef`
must be set (validated at reconcile time).
properties:
clusterRef:
description: Name of a cluster-scoped ClusterConnection.
nullable: true
type: string
secretRef:
description: |-
Name of a Secret in the resource's namespace holding `endpoint`,
`accessKey` and `secretKey` (optional: `region`, `insecure`).
nullable: true
type: string
type: object
deletionPolicy:
default: Delete
description: What happens to the remote resource when the CR is deleted.
enum:
- Delete
- Retain
type: string
enabled:
default: true
description: Whether the user is enabled.
type: boolean
passwordRef:
description: |-
Secret holding the user's password (key defaults to `password`).
Only applied when the user is first created; RustFS cannot update it.
properties:
key:
description: Key within the Secret; each consumer documents its default.
nullable: true
type: string
name:
description: Secret name.
type: string
required:
- name
type: object
policies:
default: []
description: |-
Policies attached to the user; managed declaratively (extra
attachments are detached).
items:
type: string
type: array
username:
description: Username in RustFS; defaults to the CR name.
nullable: true
type: string
required:
- connection
- passwordRef
type: object
status:
description: Shared status for all RustFS resources.
nullable: true
properties:
message:
description: Human-readable state or last error.
nullable: true
type: string
observedGeneration:
description: Generation last acted upon.
format: int64
nullable: true
type: integer
ready:
default: false
description: True once the remote resource matches the spec.
type: boolean
type: object
required:
- spec
title: User
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: policies.rustfs.com
spec:
group: rustfs.com
names:
categories: []
kind: Policy
plural: policies
shortNames:
- rfp
singular: policy
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.ready
name: Ready
type: boolean
- jsonPath: .status.message
name: Message
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: Auto-generated derived type for PolicySpec via `CustomResource`
properties:
spec:
description: An IAM policy in RustFS.
properties:
connection:
description: |-
Reference to a RustFS server. Exactly one of `secretRef` / `clusterRef`
must be set (validated at reconcile time).
properties:
clusterRef:
description: Name of a cluster-scoped ClusterConnection.
nullable: true
type: string
secretRef:
description: |-
Name of a Secret in the resource's namespace holding `endpoint`,
`accessKey` and `secretKey` (optional: `region`, `insecure`).
nullable: true
type: string
type: object
deletionPolicy:
default: Delete
description: What happens to the remote resource when the CR is deleted.
enum:
- Delete
- Retain
type: string
document:
description: IAM policy document, written inline as YAML/JSON.
type: object
x-kubernetes-preserve-unknown-fields: true
policyName:
description: Policy name in RustFS; defaults to the CR name.
nullable: true
type: string
required:
- connection
- document
type: object
status:
description: Shared status for all RustFS resources.
nullable: true
properties:
message:
description: Human-readable state or last error.
nullable: true
type: string
observedGeneration:
description: Generation last acted upon.
format: int64
nullable: true
type: integer
ready:
default: false
description: True once the remote resource matches the spec.
type: boolean
type: object
required:
- spec
title: Policy
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: accesskeys.rustfs.com
spec:
group: rustfs.com
names:
categories: []
kind: AccessKey
plural: accesskeys
shortNames:
- rfak
singular: accesskey
scope: Namespaced
versions:
- additionalPrinterColumns:
- jsonPath: .status.ready
name: Ready
type: boolean
- jsonPath: .status.accessKey
name: AccessKey
type: string
- jsonPath: .status.message
name: Message
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: Auto-generated derived type for AccessKeySpec via `CustomResource`
properties:
spec:
description: |-
An access key (AK/SK credential pair, a RustFS "service account") owned
by a [`User`]. A user can have many. The operator authenticates to
RustFS *as the user* to issue the key (the admin API only mints keys for
the calling identity), generates the credentials, and writes them to a
Secret in the CR's namespace, owner-referenced so it is garbage-collected
with the CR.
properties:
accessKey:
description: Explicit access key id; generated when omitted.
nullable: true
type: string
connection:
description: |-
Reference to a RustFS server. Exactly one of `secretRef` / `clusterRef`
must be set (validated at reconcile time).
properties:
clusterRef:
description: Name of a cluster-scoped ClusterConnection.
nullable: true
type: string
secretRef:
description: |-
Name of a Secret in the resource's namespace holding `endpoint`,
`accessKey` and `secretKey` (optional: `region`, `insecure`).
nullable: true
type: string
type: object
deletionPolicy:
default: Delete
description: What happens to the remote resource when the CR is deleted.
enum:
- Delete
- Retain
type: string
description:
description: Optional description stored on the service account.
nullable: true
type: string
passwordRef:
description: Secret holding that user's password (key defaults to `password`).
properties:
key:
description: Key within the Secret; each consumer documents its default.
nullable: true
type: string
name:
description: Secret name.
type: string
required:
- name
type: object
policy:
description: |-
Optional inline policy restricting what this key may do (subset of
the user's permissions), written as YAML/JSON.
type: object
x-kubernetes-preserve-unknown-fields: true
targetSecretName:
description: |-
Name of the Secret the operator writes the credentials to
(keys `accessKey`, `secretKey`, `endpoint`); defaults to
`<cr-name>-credentials`.
nullable: true
type: string
user:
description: Username of the owning RustFS user.
type: string
required:
- connection
- passwordRef
- user
type: object
status:
description: Status for AccessKey resources.
nullable: true
properties:
accessKey:
description: The issued access key id.
nullable: true
type: string
message:
nullable: true
type: string
observedGeneration:
format: int64
nullable: true
type: integer
ready:
default: false
type: boolean
type: object
required:
- spec
title: AccessKey
type: object
served: true
storage: true
subresources:
status: {}
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clusterconnections.rustfs.com
spec:
group: rustfs.com
names:
categories: []
kind: ClusterConnection
plural: clusterconnections
shortNames:
- rfcc
singular: clusterconnection
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.endpoint
name: Endpoint
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: Auto-generated derived type for ClusterConnectionSpec via `CustomResource`
properties:
spec:
description: |-
A centrally managed connection to a RustFS server. Cluster-scoped; the
referenced credentials Secret lives in the operator's own namespace, so
application namespaces never see admin credentials.
properties:
allowedNamespaces:
description: |-
Namespaces whose resources may use this connection.
Absent means all namespaces are allowed.
items:
type: string
nullable: true
type: array
credentialsSecretRef:
description: |-
Name of the Secret in the operator's namespace holding `accessKey`
and `secretKey`.
type: string
endpoint:
description: RustFS endpoint URL, e.g. `http://rustfs.storage.svc:9000`.
type: string
insecure:
default: false
description: Skip TLS verification.
type: boolean
region:
description: AWS region; defaults to `us-east-1`.
nullable: true
type: string
required:
- credentialsSecretRef
- endpoint
type: object
required:
- spec
title: ClusterConnection
type: object
served: true
storage: true
subresources: {}