Skip to content

Commit ee9ac42

Browse files
committed
add new CronTab example CRDs
On-behalf-of: @SAP [email protected]
1 parent 872c2fc commit ee9ac42

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

Diff for: test/crds/crontab-improved.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: crontabs.example.com
5+
spec:
6+
group: example.com
7+
scope: Namespaced
8+
names:
9+
plural: crontabs
10+
singular: crontab
11+
kind: CronTab
12+
shortNames:
13+
- ct
14+
versions:
15+
- name: v1
16+
served: true
17+
storage: true
18+
schema:
19+
openAPIV3Schema:
20+
type: object
21+
properties:
22+
spec:
23+
type: object
24+
properties:
25+
cronSpec:
26+
type: string
27+
image:
28+
type: string
29+
command:
30+
type: string
31+
replicas:
32+
type: integer

Diff for: test/crds/crontab-multi-versions.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# sourced from https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/
2+
apiVersion: apiextensions.k8s.io/v1
3+
kind: CustomResourceDefinition
4+
metadata:
5+
name: crontabs.example.com
6+
spec:
7+
group: example.com
8+
scope: Namespaced
9+
names:
10+
plural: crontabs
11+
singular: crontab
12+
kind: CronTab
13+
shortNames:
14+
- ct
15+
versions:
16+
- name: v1
17+
served: true
18+
storage: false
19+
schema:
20+
openAPIV3Schema:
21+
type: object
22+
properties:
23+
spec:
24+
type: object
25+
properties:
26+
cronSpec:
27+
type: string
28+
image:
29+
type: string
30+
replicas:
31+
type: integer
32+
- name: v2
33+
served: true
34+
storage: true
35+
schema:
36+
openAPIV3Schema:
37+
type: object
38+
properties:
39+
spec:
40+
type: object
41+
properties:
42+
cronSpec:
43+
type: string
44+
image:
45+
type: string
46+
replicas:
47+
type: integer

0 commit comments

Comments
 (0)