Skip to content
Snippets Groups Projects

set default replicas to 0 in standalone mode

Merged Ankur Kothiwal requested to merge minio-replicas into staging
@@ -28,6 +28,9 @@ spec:
@@ -28,6 +28,9 @@ spec:
maxSurge: {{ .Values.DeploymentUpdate.maxSurge }}
maxSurge: {{ .Values.DeploymentUpdate.maxSurge }}
maxUnavailable: {{ .Values.DeploymentUpdate.maxUnavailable }}
maxUnavailable: {{ .Values.DeploymentUpdate.maxUnavailable }}
{{- end}}
{{- end}}
 
{{- if and (eq .Values.mode "standalone") (eq (int .Values.replicas) 0) }}
 
replicas: 0
 
{{- end }}
{{- if .Values.nasgateway.enabled }}
{{- if .Values.nasgateway.enabled }}
replicas: {{ .Values.nasgateway.replicas }}
replicas: {{ .Values.nasgateway.replicas }}
{{- end }}
{{- end }}
Loading