Skip to content

Commit 76349ff

Browse files
committed
[app] allow skip replicas in spec
1 parent 37c2a0b commit 76349ff

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

dysnix/app/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: app
33
description: Generic application Helm chart
44
home: https://github.com/dysnix/charts/tree/main/dysnix/app
55
icon: https://dysnix.com/images/logo.svg
6-
version: 0.99.20
6+
version: 0.99.21
77
sources:
88
- https://github.com/dysnix/charts
99
keywords:

dysnix/app/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata:
1818
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
1919
{{- end }}
2020
spec:
21-
{{- if not .Values.autoscaling.enabled }}
21+
{{- if and (not .Values.autoscaling.enabled ) (ge (.Values.replicaCount|int) 0) }}
2222
replicas: {{ .Values.replicaCount }}
2323
{{- end }}
2424
{{- if .Values.updateStrategy }}

dysnix/app/templates/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ metadata:
1919
{{- end }}
2020
spec:
2121
serviceName: {{ template "common.names.fullname" . }}
22-
{{- if not .Values.autoscaling.enabled }}
22+
{{- if and (not .Values.autoscaling.enabled ) (ge (.Values.replicaCount|int) 0) }}
2323
replicas: {{ .Values.replicaCount }}
2424
{{- end }}
2525
{{- if .Values.updateStrategy }}

dysnix/app/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ image:
248248
debug: false
249249

250250
## @param replicaCount Number of replicas to deploy
251+
## use negative values to omit replicas in the controller's spec
251252
##
252253
replicaCount: 1
253254
## @param containerPorts Specifies container ports

0 commit comments

Comments
 (0)