From 6f25538443a67909cd535a816d1e3b742c8e695d Mon Sep 17 00:00:00 2001 From: jessebot Date: Mon, 29 Jul 2024 17:24:28 +0200 Subject: [PATCH] fix(nextcloud): Don't require nodePort if none is specified fixes #44 Signed-off-by: jessebot Signed-off-by: WrenIX --- charts/nextcloud/Chart.yaml | 2 +- charts/nextcloud/templates/service.yaml | 6 +++--- charts/nextcloud/values.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 31b9001b..dd78cc88 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 5.5.5 +version: 5.5.6 appVersion: 29.0.6 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/charts/nextcloud/templates/service.yaml b/charts/nextcloud/templates/service.yaml index 2223c945..866eb7c2 100644 --- a/charts/nextcloud/templates/service.yaml +++ b/charts/nextcloud/templates/service.yaml @@ -32,10 +32,10 @@ spec: targetPort: {{ .Values.nextcloud.containerPort }} protocol: TCP name: http - {{- if (eq .Values.service.type "NodePort") }} - nodePort: {{ .Values.service.nodePort | default "" }} + {{- with .Values.service.nodePort }} + nodePort: {{ . }} {{- end }} selector: app.kubernetes.io/name: {{ include "nextcloud.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} - app.kubernetes.io/component: app \ No newline at end of file + app.kubernetes.io/component: app diff --git a/charts/nextcloud/values.yaml b/charts/nextcloud/values.yaml index 1d1f93af..0a6ad0ad 100644 --- a/charts/nextcloud/values.yaml +++ b/charts/nextcloud/values.yaml @@ -500,7 +500,7 @@ service: type: ClusterIP port: 8080 loadBalancerIP: "" - nodePort: nil + nodePort: annotations: {} ## Insert your annotations such as below # test/test: pumuckel