This commit is contained in:
2025-11-05 13:02:37 -06:00
parent 224d24c790
commit 970694ea73
2 changed files with 15 additions and 2 deletions

View File

@@ -4,6 +4,10 @@ metadata:
name: {{ include "stage.fullname" . }}
labels:
{{- include "stage.labels" . | nindent 4 }}
annotations:
{{- if .Values.ingress.tls.issuer }}
cert-manager.io/cluster-issuer: {{ .Values.ingress.tls.issuer}}
{{- end}}
spec:
{{- with .Values.ingress.className }}
ingressClassName: {{ . }}
@@ -20,4 +24,10 @@ spec:
number: {{ $.Values.service.port }}
{{- if .Values.ingress.hostname }}
host: {{ .Values.ingress.hostname | quote }}
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.ingress.hostname | quote }}
secretName: {{ include "stage.fullname" . }}-cert
{{- end }}
{{- end }}

View File

@@ -46,6 +46,9 @@ service:
ingress:
className: ""
# hostname: "ontime.example.com"
tls:
enabled: false
issuer: ''
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious