Skip to content
Draft
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
48 changes: 48 additions & 0 deletions zammad/templates/httpRoute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{{- if .Values.httpRoute.enabled -}}
{{- $fullName := include "zammad.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "zammad.labels" . | nindent 4 }}
{{- with .Values.httpRoute.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- include "zammad.annotations" . | nindent 4 }}
{{- with .Values.httpRoute.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
parentRefs:
{{- if .Values.listenerSet.enabled }}
- kind: ListenerSet
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
{{- end }}
{{- with .Values.httpRoute.parentRefs }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.httpRoute.hostnames }}
hostnames:
{{- toYaml . | nindent 4 }}
{{- end }}
rules:
{{- range .Values.httpRoute.rules }}
{{- with .matches }}
- matches:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .filters }}
filters:
{{- toYaml . | nindent 8 }}
{{- end }}
backendRefs:
- name: {{ $fullName}}-nginx
port: {{ $svcPort }}
weight: 1
{{- end }}
{{- end }}
28 changes: 28 additions & 0 deletions zammad/templates/listenerSet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{{- if .Values.listenerSet.enabled -}}
{{- $fullName := include "zammad.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
apiVersion: gateway.networking.k8s.io/v1
kind: ListenerSet
metadata:
name: {{ $fullName }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "zammad.labels" . | nindent 4 }}
{{- with .Values.listenerSet.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- include "zammad.annotations" . | nindent 4 }}
{{- with .Values.listenerSet.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
parentRef:
{{- with .Values.listenerSet.parentRef }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.listenerSet.listeners }}
listeners:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
44 changes: 44 additions & 0 deletions zammad/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,50 @@ ingress:
# - chart-example.local
labels: {}

# -- Expose the service via gateway-api HTTPRoute
# Requires Gateway API resources and suitable controller installed within the cluster
# (see: https://gateway-api.sigs.k8s.io/guides/)
httpRoute:
enabled: false
annotations: {}
parentRefs:
# When .Values.listenerSet.enabled is true, the listenerSet is used as the parent
# - name: gateway
# sectionName: http
# namespace: default
# Hostnames matching HTTP header.
hostnames:
- chart-example.local
# List of rules and filters applied.
rules:
- matches:
- path:
type: PathPrefix
value: /

# -- Expose the service via gateway-api ListenerSet
# Requires Gateway API resources and suitable controller installed within the cluster
# (see: https://gateway-api.sigs.k8s.io/guides/)
listenerSet:
enabled: false
annotations: {}
parentRef:
# name: gateway
# namespace: default
# Hostnames matching HTTP header.
listeners:
- name: http
hostname: chart-example.local
port: 80
protocol: HTTP
# - name: https
# hostname: chart-example.local
# port: 443
# protocol: HTTPS
# tls:
# mode: Terminate
# certificateRefs:
# - name: chart-example-tls

# Please note that passwords for PostgreSQL, Redis and S3 may not
# contain special characters which would require URL encoding.
Expand Down