From 3a8778bf2ecb9561fe99f0ebe712918e9f1d337f Mon Sep 17 00:00:00 2001 From: Alex Godbehere Date: Mon, 1 Jul 2024 14:29:52 +0100 Subject: [PATCH] Fix admin ingress --- deploy/templates/admin/ingress.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/deploy/templates/admin/ingress.yaml b/deploy/templates/admin/ingress.yaml index 150fae75..c2a11ace 100644 --- a/deploy/templates/admin/ingress.yaml +++ b/deploy/templates/admin/ingress.yaml @@ -1,23 +1,23 @@ -{{ if .Values.cmdesc.enabled }} +{{ if .Values.admin.enabled }} apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: - name: cmdesc-ingressroute + name: admin-ingressroute namespace: default spec: entryPoints: - {{ .Values.acs.secure | ternary "websecure" "web" }} routes: - - match: Host(`cmdesc.{{.Values.acs.baseUrl | required "values.acs.baseUrl is required"}}`) + - match: Host(`{{.Values.acs.baseUrl | required "values.acs.baseUrl is required"}}`) kind: Rule services: - - name: cmdesc + - name: admin port: 80 namespace: {{ .Release.Namespace }} {{- if .Values.acs.secure }} tls: - secretName: {{ coalesce .Values.cmdesc.tlsSecretName .Values.acs.tlsSecretName }} + secretName: {{ coalesce .Values.admin.tlsSecretName .Values.acs.tlsSecretName }} domains: - - main: cmdesc.{{.Values.acs.baseUrl | required "values.acs.baseUrl is required"}} + - main: {{.Values.acs.baseUrl | required "values.acs.baseUrl is required"}} {{- end -}} {{- end -}}