From 5d50544ca710d79cd6f3400233d6a8c82a7960a2 Mon Sep 17 00:00:00 2001 From: Fabio Rauber Date: Fri, 13 May 2022 15:28:20 -0300 Subject: [PATCH] Fix issue with ingress pathType --- charts/saberes/v0.1.0/templates/ingress.yaml | 4 ++-- charts/saberes/v0.1.0/values.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/saberes/v0.1.0/templates/ingress.yaml b/charts/saberes/v0.1.0/templates/ingress.yaml index 51af89e..2993562 100644 --- a/charts/saberes/v0.1.0/templates/ingress.yaml +++ b/charts/saberes/v0.1.0/templates/ingress.yaml @@ -37,8 +37,8 @@ spec: http: paths: - path: "/" - {{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} - pathType: {{ .pathType }} + {{- if and .Values.ingress.pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} + pathType: {{ .Values.ingress.pathType }} {{- end }} backend: {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} diff --git a/charts/saberes/v0.1.0/values.yaml b/charts/saberes/v0.1.0/values.yaml index fe6581e..dbc727d 100644 --- a/charts/saberes/v0.1.0/values.yaml +++ b/charts/saberes/v0.1.0/values.yaml @@ -42,6 +42,7 @@ ingress: annotations: cert-manager.io/cluster-issuer: "letsencrypt-prod" hostname: 'moodle.url' + pathType: Prefix tls: enabled: true