Skip to content

Commit 2ddad56

Browse files
committed
OCPBUGS-56830: Add required fields to the CronTab CRD
1 parent 129c30f commit 2ddad56

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

charts/console-crontab-plugin/templates/crontab-crd.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,26 @@ spec:
1616
schema:
1717
openAPIV3Schema:
1818
type: object
19+
required:
20+
- apiVersion
21+
- kind
22+
- metadata
23+
- spec
1924
properties:
25+
apiVersion:
26+
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'
27+
type: string
28+
kind:
29+
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'
30+
type: string
31+
metadata:
32+
type: object
2033
spec:
2134
type: object
35+
required:
36+
- cronSpec
37+
- image
38+
- replicas
2239
properties:
2340
cronSpec:
2441
type: string

0 commit comments

Comments
 (0)