Browse Source

Fix issue with ingress pathType

master
Fábio Kaiser Rauber 3 years ago
parent
commit
5d50544ca7
  1. 4
      charts/saberes/v0.1.0/templates/ingress.yaml
  2. 1
      charts/saberes/v0.1.0/values.yaml

4
charts/saberes/v0.1.0/templates/ingress.yaml

@ -37,8 +37,8 @@ spec:
http: http:
paths: paths:
- path: "/" - path: "/"
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} {{- if and .Values.ingress.pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }} pathType: {{ .Values.ingress.pathType }}
{{- end }} {{- end }}
backend: backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}

1
charts/saberes/v0.1.0/values.yaml

@ -42,6 +42,7 @@ ingress:
annotations: annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod" cert-manager.io/cluster-issuer: "letsencrypt-prod"
hostname: 'moodle.url' hostname: 'moodle.url'
pathType: Prefix
tls: tls:
enabled: true enabled: true

Loading…
Cancel
Save