From 6195295c83ee692a97b551a1555fb838bcbd9162 Mon Sep 17 00:00:00 2001 From: fchinembiri Date: Fri, 31 Jul 2026 18:57:35 +0200 Subject: [PATCH] fix(ingress): add next-gen.techarvest.co.zw domain host rule to next-gen-main ingress --- k8s/nextgen/next-gen-chart/templates/ingress.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/k8s/nextgen/next-gen-chart/templates/ingress.yaml b/k8s/nextgen/next-gen-chart/templates/ingress.yaml index 7c4f8cf..b5c95f9 100644 --- a/k8s/nextgen/next-gen-chart/templates/ingress.yaml +++ b/k8s/nextgen/next-gen-chart/templates/ingress.yaml @@ -12,6 +12,9 @@ spec: tls: - hosts: - {{ .Values.ingress.host | quote }} + {{- if eq .Values.branchName "main" }} + - "next-gen.techarvest.co.zw" + {{- end }} secretName: {{ printf "%s-tls" .Release.Name }} rules: - host: {{ .Values.ingress.host | quote }} @@ -24,4 +27,16 @@ spec: name: {{ .Release.Name }} port: number: {{ .Values.service.port }} + {{- if eq .Values.branchName "main" }} + - host: "next-gen.techarvest.co.zw" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: {{ .Release.Name }} + port: + number: {{ .Values.service.port }} + {{- end }} {{- end }}