From 9fa62be55302ba4350cc20867d6e90a7da311673 Mon Sep 17 00:00:00 2001 From: Naseem Date: Sun, 1 Dec 2019 15:23:04 -0500 Subject: [PATCH] fix replica count conflict (#19203) Signed-off-by: Naseem --- stable/cloudserver/Chart.yaml | 2 +- stable/cloudserver/templates/api-deployment.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/stable/cloudserver/Chart.yaml b/stable/cloudserver/Chart.yaml index 2dfa250687..503a260d62 100644 --- a/stable/cloudserver/Chart.yaml +++ b/stable/cloudserver/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: cloudserver -version: 1.0.3 +version: 1.0.4 appVersion: 8.1.5 kubeVersion: "^1.8.0-0" description: An open-source Node.js implementation of the Amazon S3 protocol on the front-end and backend storage capabilities to multiple clouds, including Azure and Google. diff --git a/stable/cloudserver/templates/api-deployment.yaml b/stable/cloudserver/templates/api-deployment.yaml index 5b4483f0f0..2b9ff028ba 100644 --- a/stable/cloudserver/templates/api-deployment.yaml +++ b/stable/cloudserver/templates/api-deployment.yaml @@ -9,7 +9,9 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: +{{- if not .Values.api.autoscaling.enabled }} replicas: {{ .Values.api.replicaCount }} +{{- end }} selector: matchLabels: app: {{ template "cloudserver.name" . }}