-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmanifest.yaml
1300 lines (1300 loc) · 61.2 KB
/
manifest.yaml
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
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: ephemeral-namespace-operator-system
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.6.0
creationTimestamp: null
name: namespacepools.cloud.redhat.com
spec:
group: cloud.redhat.com
names:
kind: NamespacePool
listKind: NamespacePoolList
plural: namespacepools
shortNames:
- nspool
singular: namespacepool
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.size
name: Pool Size
type: string
- jsonPath: .status.ready
name: Ready
type: string
- jsonPath: .status.creating
name: Creating
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: NamespacePool is the Schema for the pools API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: NamespacePoolSpec defines the desired state of Pool
properties:
clowdenvironment:
description: ClowdEnvironmentSpec defines the desired state of ClowdEnvironment.
properties:
disabled:
description: Disabled turns off reconciliation for this ClowdEnv
type: boolean
providers:
description: A ProvidersConfig object, detailing the setup and configuration of all the providers used in this ClowdEnvironment.
properties:
autoScaler:
description: Defines the autoscaler configuration
properties:
mode:
description: 'The mode of operation of the Clowder InMemory Provider. Valid options are: (*_redis_*) where a local Minio instance will be created, and (*_elasticache_*) which will search the namespace of the ClowdApp for a secret called ''elasticache'''
enum:
- keda
- none
type: string
type: object
db:
description: Defines the Configuration for the Clowder Database Provider.
properties:
mode:
description: 'The mode of operation of the Clowder Database Provider. Valid options are: (*_app-interface_*) where the provider will pass through database credentials found in the secret defined by the database name in the ClowdApp, and (*_local_*) where the provider will spin up a local instance of the database.'
enum:
- shared
- app-interface
- local
- none
type: string
pvc:
description: If using the (*_local_*) mode and PVC is set to true, this instructs the local Database instance to use a PVC instead of emptyDir for its volumes.
type: boolean
required:
- mode
type: object
deployment:
description: Defines the Deployment provider options
properties:
omitPullPolicy:
type: boolean
type: object
featureFlags:
description: Defines the Configuration for the Clowder FeatureFlags Provider.
properties:
credentialRef:
description: Defines the secret containing the client access token, only used for (*_app-interface_*) mode.
properties:
name:
description: Name defines the Name of a resource.
type: string
namespace:
description: Namespace defines the Namespace of a resource.
type: string
required:
- name
- namespace
type: object
hostname:
description: Defines the hostname for (*_app-interface_*) mode
type: string
mode:
description: 'The mode of operation of the Clowder FeatureFlag Provider. Valid options are: (*_app-interface_*) where the provider will pass through credentials to the app configuration, and (*_local_*) where a local Unleash instance will be created.'
enum:
- local
- app-interface
- none
type: string
port:
description: Defineds the port for (*_app-interface_*) mode
format: int32
type: integer
pvc:
description: If using the (*_local_*) mode and PVC is set to true, this instructs the local Database instance to use a PVC instead of emptyDir for its volumes.
type: boolean
type: object
inMemoryDb:
description: Defines the Configuration for the Clowder InMemoryDB Provider.
properties:
mode:
description: 'The mode of operation of the Clowder InMemory Provider. Valid options are: (*_redis_*) where a local Minio instance will be created, and (*_elasticache_*) which will search the namespace of the ClowdApp for a secret called ''elasticache'''
enum:
- redis
- app-interface
- elasticache
- none
type: string
pvc:
description: If using the (*_local_*) mode and PVC is set to true, this instructs the local Database instance to use a PVC instead of emptyDir for its volumes.
type: boolean
required:
- mode
type: object
kafka:
description: Defines the Configuration for the Clowder Kafka Provider.
properties:
cluster:
description: Defines options related to the Kafka cluster for this environment. Ignored for (*_local_*) mode.
properties:
config:
additionalProperties:
type: string
description: Config full options
type: object
deleteClaim:
description: Delete persistent volume claim if the Kafka cluster is deleted Only applies when KafkaConfig.PVC is set to 'true'
type: boolean
jvmOptions:
description: JVM Options
properties:
-XX:
description: A map of -XX options to the JVM.
x-kubernetes-preserve-unknown-fields: true
-Xms:
description: -Xms option to to the JVM.
type: string
-Xmx:
description: -Xmx option to to the JVM.
type: string
gcLoggingEnabled:
description: Specifies whether the Garbage Collection logging is enabled. The default is false.
type: boolean
javaSystemProperties:
description: A map of additional system properties which will be passed using the `-D` option to the JVM.
items:
properties:
name:
description: The system property name.
type: string
value:
description: The system property value.
type: string
type: object
type: array
type: object
name:
description: 'Defines the kafka cluster name (default: <ClowdEnvironment Name>-<UID>)'
type: string
namespace:
description: 'The namespace the kafka cluster is expected to reside in (default: the environment''s targetNamespace)'
type: string
replicas:
description: The requested number of replicas for kafka/zookeeper. If unset, default is '1'
format: int32
minimum: 1
type: integer
resources:
description: Resource Limits
properties:
limits:
description: Limits corresponds to the JSON schema field "limits".
x-kubernetes-preserve-unknown-fields: true
requests:
description: Requests corresponds to the JSON schema field "requests".
x-kubernetes-preserve-unknown-fields: true
type: object
storageSize:
description: Persistent volume storage size. If unset, default is '1Gi' Only applies when KafkaConfig.PVC is set to 'true'
type: string
version:
description: Version. If unset, default is '2.5.0'
type: string
type: object
clusterName:
description: (Deprecated) Defines the cluster name to be used by the Kafka Provider this will be used in some modes to locate the Kafka instance.
type: string
connect:
description: Defines options related to the Kafka Connect cluster for this environment. Ignored for (*_local_*) mode.
properties:
image:
description: Image. If unset, default is 'quay.io/cloudservices/xjoin-kafka-connect-strimzi:latest'
type: string
name:
description: 'Defines the kafka connect cluster name (default: <kafka cluster''s name>)'
type: string
namespace:
description: 'The namespace the kafka connect cluster is expected to reside in (default: the kafka cluster''s namespace)'
type: string
replicas:
description: The requested number of replicas for kafka connect. If unset, default is '1'
format: int32
minimum: 1
type: integer
resources:
description: Resource Limits
properties:
limits:
description: Limits corresponds to the JSON schema field "limits".
x-kubernetes-preserve-unknown-fields: true
requests:
description: Requests corresponds to the JSON schema field "requests".
x-kubernetes-preserve-unknown-fields: true
type: object
version:
description: Version. If unset, default is '2.5.0'
type: string
type: object
connectClusterName:
description: (Deprecated) Defines the kafka connect cluster name that is used in this environment.
type: string
connectNamespace:
description: (Deprecated) The namespace that the Kafka Connect cluster is expected to reside in. This is only used in (*_app-interface_*) and (*_operator_*) modes.
type: string
enableLegacyStrimzi:
description: EnableLegacyStrimzi disables TLS + user auth
type: boolean
managedSecretRef:
description: Defines the secret reference for the Managed Kafka mode. Only used in (*_managed_*) mode.
properties:
name:
description: Name defines the Name of a resource.
type: string
namespace:
description: Namespace defines the Namespace of a resource.
type: string
required:
- name
- namespace
type: object
mode:
description: 'The mode of operation of the Clowder Kafka Provider. Valid options are: (*_operator_*) which provisions Strimzi resources and will configure KafkaTopic CRs and place them in the Kafka cluster''s namespace described in the configuration, (*_app-interface_*) which simply passes the topic names through to the App''s cdappconfig.json and expects app-interface to have created the relevant topics, and (*_local_*) where a small instance of Kafka is created in the desired cluster namespace and configured to auto-create topics.'
enum:
- managed
- operator
- app-interface
- local
- none
type: string
namespace:
description: (Deprecated) The Namespace the cluster is expected to reside in. This is only used in (*_app-interface_*) and (*_operator_*) modes.
type: string
pvc:
description: If using the (*_local_*) or (*_operator_*) mode and PVC is set to true, this sets the provisioned Kafka instance to use a PVC instead of emptyDir for its volumes.
type: boolean
suffix:
description: (Deprecated) (Unused)
type: string
required:
- mode
type: object
logging:
description: Defines the Configuration for the Clowder Logging Provider.
properties:
mode:
description: 'The mode of operation of the Clowder Logging Provider. Valid options are: (*_app-interface_*) where the provider will pass through cloudwatch credentials to the app configuration, and (*_none_*) where no logging will be configured.'
enum:
- app-interface
- "null"
- none
type: string
required:
- mode
type: object
metrics:
description: Defines the Configuration for the Clowder Metrics Provider.
properties:
mode:
description: The mode of operation of the Metrics provider. The allowed modes are (*_none_*), which disables metrics service generation, or (*_operator_*) where services and probes are generated. (*_app-interface_*) where services and probes are generated for app-interface.
enum:
- none
- operator
- app-interface
type: string
path:
description: A prefix path that pods will be instructed to use when setting up their metrics server.
type: string
port:
description: The port that metrics services inside ClowdApp pods should be served on.
format: int32
type: integer
prometheus:
description: Prometheus specific configuration
properties:
appInterfaceHostname:
description: Specify prometheus hostname when in app-interface mode
type: string
deploy:
description: Determines whether to deploy prometheus in operator mode
type: boolean
type: object
required:
- mode
- port
type: object
objectStore:
description: Defines the Configuration for the Clowder ObjectStore Provider.
properties:
mode:
description: 'The mode of operation of the Clowder ObjectStore Provider. Valid options are: (*_app-interface_*) where the provider will pass through Amazon S3 credentials to the app configuration, and (*_minio_*) where a local Minio instance will be created.'
enum:
- minio
- app-interface
- none
type: string
pvc:
description: If using the (*_local_*) mode and PVC is set to true, this instructs the local Database instance to use a PVC instead of emptyDir for its volumes.
type: boolean
suffix:
description: Currently unused.
type: string
required:
- mode
type: object
pullSecrets:
description: Defines the pull secret to use for the service accounts.
items:
description: NamespacedName type to represent a real Namespaced Name
properties:
name:
description: Name defines the Name of a resource.
type: string
namespace:
description: Namespace defines the Namespace of a resource.
type: string
required:
- name
- namespace
type: object
type: array
serviceMesh:
description: Defines the Configuration for the Clowder ServiceMesh Provider.
properties:
mode:
description: ServiceMeshMode just determines if we enable or disable the service mesh
enum:
- enabled
- disabled
type: string
type: object
sidecars:
description: Defines the sidecar configuration
properties:
tokenRefresher:
description: Sets up Token Refresher configuration
properties:
enabled:
description: Enables or disables token refresher sidecars
type: boolean
required:
- enabled
type: object
type: object
testing:
description: Defines the environment for iqe/smoke testing
properties:
configAccess:
description: 'The mode of operation for access to outside app configs. Valid options are: (*_none_*) -- no app config is mounted to the pod (*_app_*) -- only the ClowdApp''s config is mounted to the pod (*_environment_*) -- the config for all apps in the env are mounted'
enum:
- none
- app
- ""
- environment
type: string
iqe:
description: Defines the environment for iqe/smoke testing
properties:
imageBase:
type: string
resources:
description: A pass-through of a resource requirements in k8s ResourceRequirements format. If omitted, the default resource requirements from the ClowdEnvironment will be used.
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
ui:
description: Defines configurations related to UI testing containers
properties:
selenium:
description: Defines configurations for selenium containers in this environment
properties:
defaultImageTag:
description: Defines the default image tag used for selenium containers in this environment
type: string
imageBase:
description: Defines the image used for selenium containers in this environment
type: string
resources:
description: Defines the resource requests/limits set on selenium containers
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
type: object
type: object
vaultSecretRef:
description: Defines the secret reference for loading vault credentials into the IQE job
properties:
name:
description: Name defines the Name of a resource.
type: string
namespace:
description: Namespace defines the Namespace of a resource.
type: string
required:
- name
- namespace
type: object
required:
- imageBase
type: object
k8sAccessLevel:
description: 'The mode of operation of the testing Pod. Valid options are: ''default'', ''view'' or ''edit'''
enum:
- default
- view
- ""
- edit
type: string
required:
- configAccess
- k8sAccessLevel
type: object
web:
description: Defines the Configuration for the Clowder Web Provider.
properties:
aiuthPort:
description: The auth port that the web local mode will use with the AuthSidecar
format: int32
type: integer
apiPrefix:
description: An api prefix path that pods will be instructed to use when setting up their web server.
type: string
bopURL:
description: The URL of BOP - only used in (*_none_*/*_operator_*) mode.
type: string
ingressClass:
description: Ingress Class Name used only in (*_local_*) mode.
type: string
mode:
description: The mode of operation of the Web provider. The allowed modes are (*_none_*/*_operator_*), and (*_local_*) which deploys keycloak and BOP.
enum:
- none
- operator
- local
type: string
port:
description: The port that web services inside ClowdApp pods should be served on.
format: int32
type: integer
privatePort:
description: The private port that web services inside a ClowdApp should be served on.
format: int32
type: integer
required:
- mode
- port
type: object
required:
- inMemoryDb
- kafka
- logging
- objectStore
type: object
resourceDefaults:
description: Defines the default resource requirements in standard k8s format in the event that they omitted from a PodSpec inside a ClowdApp.
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
type: object
type: object
serviceConfig:
description: ServiceConfig provides options for k8s Service resources
properties:
type:
enum:
- ClusterIP
- NodePort
- ""
type: string
required:
- type
type: object
targetNamespace:
description: TargetNamespace describes the namespace where any generated environmental resources should end up, this is particularly important in (*_local_*) mode.
type: string
required:
- providers
- resourceDefaults
type: object
limitrange:
description: LimitRange sets resource usage limits for each kind of resource in a Namespace.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata'
properties:
annotations:
additionalProperties:
type: string
type: object
finalizers:
items:
type: string
type: array
labels:
additionalProperties:
type: string
type: object
name:
type: string
namespace:
type: string
type: object
spec:
description: 'Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status'
properties:
limits:
description: Limits is the list of LimitRangeItem objects that are enforced.
items:
description: LimitRangeItem defines a min/max usage limit for any resource that matches on kind.
properties:
default:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: Default resource requirement limit value by resource name if resource limit is omitted.
type: object
defaultRequest:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.
type: object
max:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: Max usage constraints on this kind by resource name.
type: object
maxLimitRequestRatio:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.
type: object
min:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: Min usage constraints on this kind by resource name.
type: object
type:
description: Type of resource that this limit applies to.
type: string
required:
- type
type: object
type: array
required:
- limits
type: object
type: object
local:
type: boolean
resourcequotas:
description: ResourceQuotaList is a list of ResourceQuota items.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
items:
description: 'Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/'
items:
description: ResourceQuota sets aggregate quota restrictions enforced per namespace
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: 'Standard object''s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata'
properties:
annotations:
additionalProperties:
type: string
type: object
finalizers:
items:
type: string
type: array
labels:
additionalProperties:
type: string
type: object
name:
type: string
namespace:
type: string
type: object
spec:
description: Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
hard:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/'
type: object
scopeSelector:
description: scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.
properties:
matchExpressions:
description: A list of scope selector requirements by scope of the resources.
items:
description: A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
properties:
operator:
description: Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
type: string
scopeName:
description: The name of the scope that the selector applies to.
type: string
values:
description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
type: string
type: array
required:
- operator
- scopeName
type: object
type: array
type: object
scopes:
description: A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.
items:
description: A ResourceQuotaScope defines a filter that must match each object tracked by a quota
type: string
type: array
type: object
status:
description: Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
properties:
hard:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/'
type: object
used:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: Used is the current observed total usage of the resource in the namespace.
type: object
type: object
type: object
type: array
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
description: 'Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
properties:
continue:
description: continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.
type: string
remainingItemCount:
description: remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.
format: int64
type: integer
resourceVersion:
description: 'String that identifies the server''s internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
type: string
selfLink:
description: "selfLink is a URL representing this object. Populated by the system. Read-only. \n DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."
type: string
type: object
required:
- items
type: object
size:
type: integer
required:
- clowdenvironment
- limitrange
- local
- resourcequotas
- size
type: object
status:
description: NamespacePoolStatus defines the observed state of Pool
properties:
creating:
type: integer
ready:
type: integer
required:
- creating
- ready
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.6.0
creationTimestamp: null
name: namespacereservations.cloud.redhat.com
spec:
group: cloud.redhat.com
names:
kind: NamespaceReservation
listKind: NamespaceReservationList
plural: namespacereservations
shortNames:
- reservation
- nsr
singular: namespacereservation
scope: Cluster
versions:
- additionalPrinterColumns:
- jsonPath: .spec.requester
name: Requester
type: string
- jsonPath: .status.state
name: State
type: string
- jsonPath: .status.namespace
name: Namespace
type: string
- format: date-time
jsonPath: .status.expiration
name: Expiration
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: NamespaceReservation is the Schema for the namespacereservations API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: NamespaceReservationSpec defines the desired state of NamespaceReservation
properties:
duration:
description: Duration is how long the reservation will last
type: string
requester:
description: Requester is the entity (bot or human) requesting the namespace
type: string
required:
- requester
type: object
status:
description: NamespaceReservationStatus defines the observed state of NamespaceReservation
properties:
expiration:
format: date-time
type: string
namespace:
type: string
state:
type: string
required:
- expiration
- namespace
- state
type: object
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: ephemeral-namespace-operator-controller-manager
namespace: ephemeral-namespace-operator-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: ephemeral-namespace-operator-leader-election-role
namespace: ephemeral-namespace-operator-system
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- get
- list
- watch
- create
- update
- patch
- delete
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
managed.openshift.io/aggregate-to-dedicated-admins: cluster
rbac.authorization.k8s.io/aggregate-to-edit: "true"
name: ephemeral-namespace-operator-editor
rules:
- apiGroups:
- cloud.redhat.com
resources:
- namespacereservations
- clowdenvironments
- frontendenvironments
- namespacepools
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- patch
- update
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata: