-
Notifications
You must be signed in to change notification settings - Fork 6
/
h2os.h2o.ai.crd.yaml
54 lines (54 loc) · 1.46 KB
/
h2os.h2o.ai.crd.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
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: h2os.h2o.ai
spec:
group: h2o.ai
names:
kind: H2O
plural: h2os
singular: h2o
scope: Namespaced
versions:
- name: v1beta
served: true
storage: true
subresources:
status: { }
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
nodes:
type: integer
version:
type: string
customImage:
type: object
properties:
image:
type: string
command:
type: string
required: ["image"]
resources:
type: object
properties:
cpu:
type: integer
minimum: 1
memory:
type: string
pattern: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$"
memoryPercentage:
type: integer
minimum: 1
maximum: 100
required: ["cpu", "memory"]
oneOf:
- required: ["version"]
- required: ["customImage"]
required: ["nodes", "resources"]