This repository was archived by the owner on Jan 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathcrd.yaml
More file actions
96 lines (96 loc) · 2.95 KB
/
crd.yaml
File metadata and controls
96 lines (96 loc) · 2.95 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
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: tomcats.tomcatoperator.io
spec:
# group name to use for REST API: /apis/<group>/<version>
group: tomcatoperator.io
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
subresources:
status: { }
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
version:
type: integer
replicas:
type: integer
status:
type: object
properties:
readyReplicas:
type: integer
required: [spec]
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: tomcats
# singular name to be used as an alias on the CLI and for display
singular: tomcat
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: Tomcat
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- tc
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
# name must match the spec fields below, and be in the form: <plural>.<group>
name: webapps.tomcatoperator.io
spec:
# group name to use for REST API: /apis/<group>/<version>
group: tomcatoperator.io
# list of versions supported by this CustomResourceDefinition
versions:
- name: v1
# Each version can be enabled/disabled by Served flag.
served: true
# One and only one version must be marked as the storage version.
storage: true
subresources:
status: {}
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
tomcat:
type: string
url:
type: string
contextPath:
type: string
status:
type: object
properties:
deployedArtifact:
type: string
deploymentStatus:
type: array
items:
type: string
required: [spec]
# either Namespaced or Cluster
scope: Namespaced
names:
# plural name to be used in the URL: /apis/<group>/<version>/<plural>
plural: webapps
# singular name to be used as an alias on the CLI and for display
singular: webapp
# kind is normally the CamelCased singular type. Your resource manifests use this.
kind: Webapp