Skip to content

Commit

Permalink
feat: add possibility to set extra labels and externalTrafficPolicy f…
Browse files Browse the repository at this point in the history
…or service template (#295)

Co-authored-by: Elio Bischof <[email protected]>
  • Loading branch information
cyril-s and eliobischof authored Jan 7, 2025
1 parent 3988362 commit e97a8e1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/zitadel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: zitadel
description: A Helm chart for ZITADEL
type: application
appVersion: v2.67.0
version: 8.9.0
version: 8.10.0
kubeVersion: '>= 1.21.0-0'
icon: https://zitadel.com/zitadel-logo-dark.svg
maintainers:
Expand Down
6 changes: 6 additions & 0 deletions charts/zitadel/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,17 @@ metadata:
{{- end }}
labels:
{{- include "zitadel.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
{{- if and .Values.service.externalTrafficPolicy (eq .Values.service.type "LoadBalancer") }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: 8080
Expand Down
3 changes: 3 additions & 0 deletions charts/zitadel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,13 @@ service:
type: ClusterIP
# If service type is "ClusterIP", this can optionally be set to a fixed IP address.
clusterIP: ""
# If service type is "LoadBalancer", this can optionally be set to either "Cluster" or "Local"
externalTrafficPolicy: ""
port: 8080
protocol: http2
appProtocol: kubernetes.io/h2c
annotations: {}
labels: {}
scheme: HTTP

ingress:
Expand Down

0 comments on commit e97a8e1

Please sign in to comment.