add alias for backward compat

This commit is contained in:
Alex Holliday committed 2026-06-30 16:58:52 -07:00
1 parent 8f657dcd36
commit 0ec77a5ab1
9 files changed
+104 -36

No files matched your search

@@ -1,11 +1,12 @@
{{- if .Values.api.ingress.enabled }}
{{- $api := include "checkmate.api" . | fromYaml -}}
{{- if $api.ingress.enabled }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: checkmate-api-ingress
{{- if .Values.api.ingress.annotations }}
{{- if $api.ingress.annotations }}
annotations:
{{- range $key, $value := .Values.api.ingress.annotations }}
{{- range $key, $value := $api.ingress.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
@@ -17,15 +18,15 @@ metadata:
#nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization"
#nginx.ingress.kubernetes.io/cors-allow-credentials: "true"*/}}
spec:
ingressClassName: {{ .Values.api.ingress.className }}
{{- if .Values.api.ingress.tls.enabled }}
ingressClassName: {{ $api.ingress.className }}
{{- if $api.ingress.tls.enabled }}
tls:
- hosts:
- {{ .Values.api.ingress.host }}
secretName: {{ default (printf "%s-api-tls" .Release.Name) .Values.api.ingress.tls.secretName }}
- {{ $api.ingress.host }}
secretName: {{ default (printf "%s-api-tls" .Release.Name) $api.ingress.tls.secretName }}
{{- end }}
rules:
- host: {{ .Values.api.ingress.host }}
- host: {{ $api.ingress.host }}
http:
paths:
- path: /api/v1
@@ -34,5 +35,5 @@ spec:
service:
name: checkmate-api
port:
number: {{ .Values.api.port }}
number: {{ $api.port }}
{{- end }}