-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample-CRD-schema.yaml
More file actions
42 lines (42 loc) · 959 Bytes
/
sample-CRD-schema.yaml
File metadata and controls
42 lines (42 loc) · 959 Bytes
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
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: databases.example.com
spec:
group: example.com
scope: Namespaced
names:
plural: databases
singular: database
kind: Database
shortNames:
- db
versions:
- name: v1
served: true
storage: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
required:
- engine
- version
properties:
engine:
type: string
enum:
- mysql
- postgres
version:
type: string
storageGB:
type: integer
minimum: 1
status:
type: object
properties:
phase:
type: string