-
Notifications
You must be signed in to change notification settings - Fork 7
/
schema.yaml
239 lines (238 loc) · 8.32 KB
/
schema.yaml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
x-google-marketplace:
schemaVersion: v2
applicationApiVersion: v1beta1
publishedVersion: "$TAG"
publishedVersionMetadata:
releaseNote: >-
A regular update.
releaseTypes:
- Feature
recommended: false
images:
'':
properties:
operator.image.repository:
type: REPO_WITH_REGISTRY
operator.image.tag:
type: TAG
usagemeter:
properties:
usagemeter.image:
type: REPO_WITH_REGISTRY
usagemeter.tag:
type: TAG
clusterConstraints:
resources:
- replicas: 3
requests:
cpu: 4000m
memory: 15Gi
deployerServiceAccount:
description: Service account for Deployer
roles:
- type: ClusterRole
rulesType: CUSTOM
rules:
- apiGroups: [""]
resources: ["persistentvolumes", "clusterroles", "clusterrolebindings"]
verbs: ["get", "watch", "list", "update", "patch", "create", "delete"]
properties:
name:
type: string
x-google-marketplace:
type: NAME
namespace:
type: string
x-google-marketplace:
type: NAMESPACE
operator.serviceAccountName:
type: string
title: Service account for operator
x-google-marketplace:
type: SERVICE_ACCOUNT
serviceAccount:
description: Service account for operator
roles:
- type: ClusterRole
rulesType: CUSTOM
rules:
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get"]
- type: Role
rulesType: CUSTOM
rules:
- apiGroups: ["rbac.authorization.k8s.io", ""]
resources: ["roles", "serviceaccounts", "rolebindings"]
verbs: ["bind", "escalate", "impersonate", "userextras",
"create", "get", "list", "watch", "update", "patch",
"delete", "deletecollection"]
- apiGroups:
- app.redislabs.com
resources:
- "redisenterpriseclusters"
- "redisenterpriseclusters/status"
- "redisenterpriseclusters/finalizers"
- "redisenterprisedatabases"
- "redisenterprisedatabases/status"
- "redisenterprisedatabases/finalizers"
- "redisenterpriseactiveactivedatabases"
- "redisenterpriseactiveactivedatabases/status"
- "redisenterpriseactiveactivedatabases/finalizers"
- "redisenterpriseremoteclusters"
- "redisenterpriseremoteclusters/status"
- "redisenterpriseremoteclusters/finalizers"
verbs: ["delete", "deletecollection", "get", "list", "patch",
"create", "update", "watch"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["update", "get", "read", "list", "listallnamespaces",
"watch", "watchlist", "watchlistallnamespaces", "create",
"patch", "replace", "delete", "deletecollection"]
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "patch"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "replicasets"]
verbs: ["create", "delete", "deletecollection", "get", "list",
"patch", "update", "watch"]
- apiGroups: ["policy"]
resources: ["poddisruptionbudgets"]
verbs: ["create", "delete", "get", "list", "watch"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create", "delete", "get" , "update", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["create", "delete", "get" , "update", "list", "watch"]
# needed rbac rules for services controller
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "watch", "list", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["services"]
verbs: ["get", "watch", "list", "update", "patch", "create", "delete"]
- apiGroups: ["policy"]
resources: ["podsecuritypolicies"]
resourceNames:
- redis-enterprise-psp
verbs:
- use
- apiGroups: ["extensions"]
resources: ["ingresses"]
verbs: ["create", "patch", "replace", "delete",
"deletecollection", "read", "list", "listallnamespaces",
"watch", "watchlist", "watchlistallnamespaces",
"patchstatus", "readstatus", "replacestatus", "update"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["create", "patch", "replace", "delete",
"deletecollection", "read", "list", "listallnamespaces",
"watch", "watchlist", "watchlistallnamespaces",
"patchstatus", "readstatus", "replacestatus", "update"]
DeployJobServiceAccount:
type: string
title: Service account for custom resources
x-google-marketplace:
type: SERVICE_ACCOUNT
serviceAccount:
description: Service account for ownerReference chain and CR and admission creation
roles:
- type: ClusterRole
rulesType: CUSTOM
rules:
- apiGroups: ["app.k8s.io", "apiextensions.k8s.io"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["admissionregistration.k8s.io"]
resources: ["validatingwebhookconfigurations"]
verbs: ["*"]
- type: Role
rulesType: CUSTOM
rules:
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["*"]
- apiGroups: [""]
resources: ["services", "secrets"]
verbs: ["*"]
- apiGroups: ["app.redislabs.com"]
resources: ["redisenterpriseclusters"]
verbs: ["get", "create", "patch"]
operator.replicas:
type: integer
title: Number of Cluster Nodes
description: Number of Cluster Nodes
default: 3
minimum: 3
maximum: 11
operator.redisAdmin:
type: string
title: Redis admin username
description: Username to be used for connecting to Redis
# https://www.w3.org/TR/html52/sec-forms.html#email-state-typeemail
pattern: ^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$
default: [email protected]
ingressAvailable:
type: boolean
default: true
title: Ingress Supported
description: Indicates whether the cluster is detected to have Ingress support.
x-google-marketplace:
type: INGRESS_AVAILABLE
reportingSecret:
type: string
x-google-marketplace:
type: REPORTING_SECRET
operator.storageClass:
title: Storage Class
type: string
description: Storage class
default: standard
x-google-marketplace:
type: STORAGE_CLASS
storageClass:
type: SSD
operator.nodeCpu:
title: Node CPU [millis]
type: integer
description: Each node CPU in millicpu, i.e. 1000 equals 1vCPU
default: 4000
minimum: 100
maximum: 32000
operator.nodeMem:
title: Node Memory [GB]
type: integer
description: Each node RAM in GB, i.e., 1 equals 1GiB
default: 15
minimum: 1
maximum: 269
CRDJobServiceAccount:
type: string
title: Service account for custom resource definitions
x-google-marketplace:
type: SERVICE_ACCOUNT
serviceAccount:
description: Service account for custom resource definitions
roles:
- type: ClusterRole
rulesType: CUSTOM
rules:
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get","list","create", "patch"]
deployerHelm.image:
type: string
x-google-marketplace:
type: DEPLOYER_IMAGE
required:
- name
- namespace
- operator.storageClass
- operator.redisAdmin
- operator.replicas
- operator.nodeCpu
- operator.nodeMem