From d1438c1d026c0c6fdaa563dc4f81c381ea6ae710 Mon Sep 17 00:00:00 2001 From: jessebot Date: Wed, 24 Jul 2024 08:05:12 +0200 Subject: [PATCH] only set spec.replicas in Nextcloud deployment if .Values.hpa.enabled is set to false Signed-off-by: jessebot --- charts/nextcloud/Chart.yaml | 2 +- charts/nextcloud/templates/deployment.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index a729d32c..ec72c02c 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 5.3.0 +version: 5.4.0 appVersion: 29.0.4 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/deployment.yaml b/charts/nextcloud/templates/deployment.yaml index db73a64d..6f601963 100644 --- a/charts/nextcloud/templates/deployment.yaml +++ b/charts/nextcloud/templates/deployment.yaml @@ -17,7 +17,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + {{- if not .Values.hpa.enabled }} replicas: {{ .Values.replicaCount }} + {{- end }} strategy: {{- toYaml .Values.nextcloud.strategy | nindent 4 }} selector: