74
74
deploymentStrategy :
75
75
type : Recreate
76
76
rollingUpdate :
77
+ labels : &labels
78
+ mock-label1-key : mock-label1-value
79
+ mock-label2-key : mock-label2-value
80
+ annotations : &annotations
81
+ mock-annotation1-key : mock-annotation1-value
82
+ mock-annotation2-key : mock-annotation2-value
77
83
db :
78
84
type : sqlite-pvc
79
85
upgrade :
80
86
pvc :
81
- annotations :
82
- mock-annotation : mock
83
- selector :
84
- matchLabels :
85
- mock-selector : mock
87
+ annotations : *annotations
86
88
accessModes :
87
89
- ReadWriteOnce
88
90
storage : 1Gi
89
91
subPath : /mock
90
92
storageClassName : custom-storage-class
91
93
url : custom-db-url
92
- labels :
93
- mock : mock
94
- annotations :
95
- mock : mock
96
94
image :
97
95
name : dummy-name
98
96
tag : dummy-tag
111
109
c.Spawner.cmd = 'mock'
112
110
extraConfigMap :
113
111
mock.entry : mock-config-map-entry
114
- extraEnv :
112
+ extraEnv : &extraEnv
115
113
IGNORED_KEY_NAME :
116
114
name : MOCK_ENV_VAR_NAME1
117
115
value : MOCK_ENV_VAR_VALUE1
@@ -120,10 +118,13 @@ hub:
120
118
extraContainers : []
121
119
extraVolumes : []
122
120
extraVolumeMounts : []
123
- resources :
121
+ resources : &resources
124
122
requests :
125
123
cpu : 100m
126
124
memory : 512Mi
125
+ limits :
126
+ cpu : 200m
127
+ memory : 1Gi
127
128
lifecycle : &lifecycle
128
129
postStart :
129
130
exec :
@@ -171,25 +172,19 @@ proxy:
171
172
port : 22
172
173
targetPort : ssh
173
174
type : LoadBalancer
174
- labels :
175
- MOCK_PROXY_ENV : mock
176
- annotations :
177
- hub.jupyter.org/mock-proxy-annotation : mock
175
+ labels : *labels
176
+ annotations : *annotations
178
177
nodePorts :
179
178
http :
180
179
https :
181
180
chp :
182
181
extraCommandLineFlags :
183
182
- " --auto-rewrite"
184
183
- " --mock-flag {{ .Values.proxy.chp.resources.requests.memory }}"
185
- resources :
186
- requests :
187
- cpu : 100m
188
- memory : 512Mi
184
+ resources : *resources
189
185
defaultTarget : http://dummy.local/hello
190
186
errorTarget : http://dummy.local/error
191
- extraEnv :
192
- MOCK_ENV : mock
187
+ extraEnv : *extraEnv
193
188
nodeSelector :
194
189
node-type : mock
195
190
tolerations :
@@ -213,17 +208,9 @@ proxy:
213
208
extraPorts :
214
209
- name : ssh
215
210
containerPort : 8022
216
- labels :
217
- hub.jupyter.org/test-label : mock
218
- resources :
219
- requests :
220
- cpu : 200m
221
- memory : 512Mi
222
- limits :
223
- cpu : 200m
224
- memory : 1Gi
225
- extraEnv :
226
- LEGO_CA_CERTIFICATES : /etc/pebble/root-cert.pem
211
+ labels : *labels
212
+ resources : *resources
213
+ extraEnv : *extraEnv
227
214
nodeSelector :
228
215
node-type : mock
229
216
tolerations :
@@ -244,15 +231,8 @@ proxy:
244
231
maxUnavailable : null
245
232
minAvailable : 1
246
233
secretSync :
247
- resources :
248
- requests :
249
- cpu : 100m
250
- memory : 128Mi
251
- limits :
252
- cpu : 200m
253
- memory : 1Gi
254
- labels :
255
- mock-proxy-label : mock
234
+ resources : *resources
235
+ labels : *labels
256
236
https :
257
237
enabled : true
258
238
type : letsencrypt
@@ -347,8 +327,8 @@ singleuser:
347
327
interNamespaceAccessLabels : ignore
348
328
allowedIngressPorts : []
349
329
events : true
350
- extraLabels : {}
351
- extraEnv : {}
330
+ extraLabels : *labels
331
+ extraEnv : *extraEnv
352
332
lifecycleHooks : *lifecycle
353
333
initContainers :
354
334
- name : mock-init-container-name
@@ -363,8 +343,7 @@ singleuser:
363
343
serviceAccountName :
364
344
storage :
365
345
type : dynamic
366
- extraLabels :
367
- mock-label : mock-value
346
+ extraLabels : *labels
368
347
extraVolumes : []
369
348
extraVolumeMounts : []
370
349
static :
@@ -420,7 +399,7 @@ scheduling:
420
399
userPlaceholder :
421
400
enabled : true
422
401
replicas : 1
423
- resources : {}
402
+ resources : *resources
424
403
corePods :
425
404
tolerations :
426
405
- key : mock-taint-key-corePods
@@ -465,8 +444,7 @@ prePuller:
465
444
466
445
ingress :
467
446
enabled : true
468
- annotations :
469
- mock : mock
447
+ annotations : *annotations
470
448
hosts :
471
449
- mocked1.domain.name
472
450
- mocked2.domain.name
@@ -487,7 +465,9 @@ cull:
487
465
debug :
488
466
enabled : true
489
467
490
- global : {}
468
+ global :
469
+ whatever :
470
+ this-should-be-accepted : true
491
471
492
472
custom :
493
473
myCustomStuff : [hello]
0 commit comments