Skip to content

Commit c87726e

Browse files
committed
feat: use CRD/v1 API for the Snyk Operator custom resources
1 parent fc6b325 commit c87726e

File tree

1 file changed

+51
-52
lines changed

1 file changed

+51
-52
lines changed
Lines changed: 51 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apiVersion: apiextensions.k8s.io/v1beta1
1+
apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
name: snykmonitors.charts.helm.k8s.io
@@ -10,63 +10,62 @@ spec:
1010
plural: snykmonitors
1111
singular: snykmonitor
1212
scope: Namespaced
13-
validation:
14-
openAPIV3Schema:
15-
type: object
16-
properties:
17-
apiVersion:
18-
type: string
19-
kind:
20-
type: string
21-
metadata:
13+
versions:
14+
- name: v1alpha1
15+
served: true
16+
storage: true
17+
schema:
18+
openAPIV3Schema:
2219
type: object
23-
spec:
2420
properties:
25-
monitorSecrets:
26-
description: >-
27-
The name of the secret object that stores the Snyk controller secrets.
28-
The secret needs to contain the following data fields:
29-
- integrationId
30-
- dockercfg.json
31-
type: string
32-
image:
33-
properties:
34-
pullPolicy:
35-
type: string
36-
repository:
37-
type: string
38-
tag:
39-
type: string
40-
type: object
41-
scope:
42-
type: string
43-
clusterName:
21+
apiVersion:
4422
type: string
45-
integrationApi:
23+
kind:
4624
type: string
47-
temporaryStorageSize:
48-
type: string
49-
pvc:
25+
metadata:
26+
type: object
27+
spec:
28+
x-kubernetes-preserve-unknown-fields: true
5029
properties:
51-
enabled:
52-
type: boolean
53-
create:
54-
type: boolean
55-
name:
30+
monitorSecrets:
31+
description: >-
32+
The name of the secret object that stores the Snyk controller secrets.
33+
The secret needs to contain the following data fields:
34+
- integrationId
35+
- dockercfg.json
5636
type: string
57-
storageClassName:
37+
image:
38+
properties:
39+
pullPolicy:
40+
type: string
41+
repository:
42+
type: string
43+
tag:
44+
type: string
45+
type: object
46+
scope:
5847
type: string
59-
type: object
60-
initContainerImage:
61-
properties:
62-
repository:
48+
clusterName:
6349
type: string
64-
tag:
50+
integrationApi:
6551
type: string
66-
type: object
67-
# "version" will be deprecated in apiextensions.k8s.io/v1
68-
version: v1alpha1
69-
versions:
70-
- name: v1alpha1
71-
served: true
72-
storage: true
52+
temporaryStorageSize:
53+
type: string
54+
pvc:
55+
properties:
56+
enabled:
57+
type: boolean
58+
create:
59+
type: boolean
60+
name:
61+
type: string
62+
storageClassName:
63+
type: string
64+
type: object
65+
initContainerImage:
66+
properties:
67+
repository:
68+
type: string
69+
tag:
70+
type: string
71+
type: object

0 commit comments

Comments
 (0)