Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow service without authproxy #504

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.service.annotations }}
{{ toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- include "k6-operator.customAnnotations" . | default "" | nindent 4 }}
{{- with .Values.service.annotations }}
{{ toYaml . | nindent 4 }}
{{- end }}
spec:
ports:
- name: https
Expand Down
25 changes: 25 additions & 0 deletions charts/k6-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@
"title": "affinity",
"type": "object"
},
"service": {
"additionalProperties": false,
"properties": {
"enabled": {
"default": false,
"description": "service.enabled -- enables the service",
"title": "enabled",
"type": "boolean"
},
"labels": {
"additionalProperties": true,
"description": "service.labels -- service custom labels",
"title": "labels",
"type": "object"
},
"annotations": {
"additionalProperties": true,
"description": "service.annotations -- service custom annotations",
"title": "labels",
"type": "object"
}
},
"title": "service",
"type": "object"
},
"authProxy": {
"additionalProperties": false,
"properties": {
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
Loading