File tree Expand file tree Collapse file tree 3 files changed +58
-1
lines changed Expand file tree Collapse file tree 3 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 1
- {{- if .Values.authProxy.enabled }}
1
+ {{- if or .Values.authProxy.enabled .Values.service .enabled }}
2
2
apiVersion : v1
3
3
kind : Service
4
4
metadata :
@@ -9,8 +9,14 @@ metadata:
9
9
app.kubernetes.io/component : controller
10
10
{{- include "k6-operator.labels" . | nindent 4 }}
11
11
{{- include "k6-operator.customLabels" . | default "" | nindent 4 }}
12
+ {{- with .Values.service.annotations }}
13
+ {{ toYaml . | nindent 4 }}
14
+ {{- end }}
12
15
annotations :
13
16
{{- include "k6-operator.customAnnotations" . | default "" | nindent 4 }}
17
+ {{- with .Values.service.annotations }}
18
+ {{ toYaml . | nindent 4 }}
19
+ {{- end }}
14
20
spec :
15
21
ports :
16
22
- name : https
Original file line number Diff line number Diff line change 7
7
"title" : " affinity" ,
8
8
"type" : " object"
9
9
},
10
+ "service" : {
11
+ "additionalProperties" : false ,
12
+ "properties" : {
13
+ "enabled" : {
14
+ "default" : false ,
15
+ "description" : " service.enabled -- enables the service" ,
16
+ "title" : " enabled" ,
17
+ "type" : " boolean"
18
+ },
19
+ "labels" : {
20
+ "additionalProperties" : true ,
21
+ "description" : " service.labels -- service custom labels" ,
22
+ "title" : " labels" ,
23
+ "type" : " object"
24
+ },
25
+ "annotations" : {
26
+ "additionalProperties" : true ,
27
+ "description" : " service.annotations -- service custom annotations" ,
28
+ "title" : " labels" ,
29
+ "type" : " object"
30
+ }
31
+ },
32
+ "title" : " service" ,
33
+ "type" : " object"
34
+ },
10
35
"authProxy" : {
11
36
"additionalProperties" : false ,
12
37
"properties" : {
Original file line number Diff line number Diff line change @@ -195,6 +195,32 @@ metrics:
195
195
# @schema
196
196
honorLabels : false
197
197
198
+ # @schema
199
+ # required: false
200
+ # type: object
201
+ # @schema
202
+ service :
203
+ # @schema
204
+ # required: false
205
+ # type: boolean
206
+ # @schema
207
+ # service.enabled -- enables the k6-operator service (default: false)
208
+ enabled : true
209
+ # @schema
210
+ # additionalProperties: true
211
+ # required: false
212
+ # type: object
213
+ # @schema
214
+ # service.labels -- service custom labels
215
+ labels : {}
216
+ # @schema
217
+ # additionalProperties: true
218
+ # required: false
219
+ # type: object
220
+ # @schema
221
+ # service.annotations -- service custom annotations
222
+ annotations : {}
223
+
198
224
# @schema
199
225
# required: false
200
226
# type: object
You can’t perform that action at this time.
0 commit comments