fix: use serverPort from config.port, add default value #2
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-28 22:20:21 +03:00
parent 8b1914fb52
commit 3a6ce19ffe
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "hedgedoc.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- $svcPort := .Values.config.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}