Skip to content

Commit bb6c5c3

Browse files
feat: allow service without authproxy (#504)
* feat: allow service without authproxy Signed-off-by: afreyermuth98 <[email protected]> * 🐛 Missing scheam Signed-off-by: afreyermuth98 <[email protected]> * 🐛 Missing title and type Signed-off-by: afreyermuth98 <[email protected]> * 🐛 Removed extra 'metrics' Signed-off-by: afreyermuth98 <[email protected]> * 🔧 Reviews Signed-off-by: afreyermuth98 <[email protected]> --------- Signed-off-by: afreyermuth98 <[email protected]>
1 parent 34c0eea commit bb6c5c3

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

charts/k6-operator/templates/service.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.authProxy.enabled }}
1+
{{- if or .Values.authProxy.enabled .Values.service.enabled }}
22
apiVersion: v1
33
kind: Service
44
metadata:
@@ -9,8 +9,14 @@ metadata:
99
app.kubernetes.io/component: controller
1010
{{- include "k6-operator.labels" . | nindent 4 }}
1111
{{- include "k6-operator.customLabels" . | default "" | nindent 4 }}
12+
{{- with .Values.service.annotations }}
13+
{{ toYaml . | nindent 4 }}
14+
{{- end }}
1215
annotations:
1316
{{- include "k6-operator.customAnnotations" . | default "" | nindent 4 }}
17+
{{- with .Values.service.annotations }}
18+
{{ toYaml . | nindent 4 }}
19+
{{- end }}
1420
spec:
1521
ports:
1622
- name: https

charts/k6-operator/values.schema.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,31 @@
77
"title": "affinity",
88
"type": "object"
99
},
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+
},
1035
"authProxy": {
1136
"additionalProperties": false,
1237
"properties": {

charts/k6-operator/values.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,32 @@ metrics:
195195
# @schema
196196
honorLabels: false
197197

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+
198224
# @schema
199225
# required: false
200226
# type: object

0 commit comments

Comments
 (0)