Skip to content

Commit

Permalink
feat: allow service without authproxy
Browse files Browse the repository at this point in the history
Signed-off-by: afreyermuth98 <[email protected]>
  • Loading branch information
afreyermuth98 committed Dec 10, 2024
1 parent cbbc656 commit 1258217
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
8 changes: 7 additions & 1 deletion charts/k6-operator/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.authProxy.enabled }}
{{- if or .Values.authProxy.enabled .Values.service.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -9,8 +9,14 @@ metadata:
app.kubernetes.io/component: controller
{{- include "k6-operator.labels" . | nindent 4 }}
{{- include "k6-operator.customLabels" . | default "" | nindent 4 }}
{{- with .Values.metrics.service.annotations }}
{{ toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- include "k6-operator.customAnnotations" . | default "" | nindent 4 }}
{{- with .Values.metrics.service.annotations }}
{{ toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- name: https
Expand Down
26 changes: 26 additions & 0 deletions charts/k6-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,32 @@ prometheus:
# prometheus.enabled -- enables the prometheus metrics scraping (default: false)
enabled: false

# @schema
# required: false
# type: object
# @schema
service:
# @schema
# required: false
# type: boolean
# @schema
# service.enabled -- enables the k6 service (default: false)
enabled: false
# @schema
# additionalProperties: true
# required: false
# type: object
# @schema
# service.labels -- service custom labels
labels: {}
# @schema
# additionalProperties: true
# required: false
# type: object
# @schema
# service.annotations -- service custom annotations
annotations: {}

# @schema
# required: false
# type: object
Expand Down

0 comments on commit 1258217

Please sign in to comment.