From 07e31fe02b6732c0a40981871cadfd0d91d779e6 Mon Sep 17 00:00:00 2001 From: sd109 Date: Tue, 11 Jun 2024 15:37:24 +0100 Subject: [PATCH] Minor fixes --- chart/templates/api/ingress.yml | 4 ++-- chart/templates/ui/ingress.yml | 2 +- chart/values.yaml | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/chart/templates/api/ingress.yml b/chart/templates/api/ingress.yml index 24bb50d..5588688 100644 --- a/chart/templates/api/ingress.yml +++ b/chart/templates/api/ingress.yml @@ -8,11 +8,11 @@ metadata: {{ end -}} name: {{ default (printf "%s-api" .Release.Name) .Values.ingress.api.name }} spec: - ingressClassName: nginx + ingressClassName: {{ .Values.ingress.className }} rules: - http: paths: - - path: /v1 + - path: {{ .Values.ingress.api.path }} pathType: Prefix backend: service: diff --git a/chart/templates/ui/ingress.yml b/chart/templates/ui/ingress.yml index 8b943d7..374787b 100644 --- a/chart/templates/ui/ingress.yml +++ b/chart/templates/ui/ingress.yml @@ -8,7 +8,7 @@ metadata: {{ end -}} name: {{ default (printf "%s-ui" .Release.Name) .Values.ingress.ui.name }} spec: - ingressClassName: nginx + ingressClassName: {{ .Values.ingress.className }} rules: - http: paths: diff --git a/chart/values.yaml b/chart/values.yaml index 118b145..10d7b6e 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -124,6 +124,8 @@ ui: # NOTE: An ingress controller must be installed # on the target cluster. ingress: + # The name of the ingress class to use + className: nginx host: tls: true api: