Skip to content

Commit

Permalink
Make replicaCount optional in monochart (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lowess authored Jul 1, 2022
1 parent 00d45aa commit 64f25be
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/monochart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v1
description: A declarative helm chart for deploying common types of services on Kubernetes
name: monochart
version: 0.25.1
appVersion: 0.25.1
version: 0.25.2
appVersion: 0.25.2
home: https://github.com/Lowess/charts/tree/master/charts/monochart
icon: https://raw.githubusercontent.com/cloudposse/charts/master/incubator/monochart/logo.png
maintainers:
Expand Down
4 changes: 3 additions & 1 deletion charts/monochart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ metadata:
{{ toYaml .| indent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
{{- with .Values.replicaCount }}
replicas: {{ . }}
{{- end }}
selector:
matchLabels:
app: {{ include "common.name" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/monochart/values.example.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
replicaCount: 1
replicaCount: null

serviceAccountName: my-service-account

Expand Down
1 change: 1 addition & 0 deletions charts/monochart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# replicaCount can be set to null to be omitted and let HPA take over
replicaCount: 1


Expand Down

0 comments on commit 64f25be

Please sign in to comment.