Skip to content

Commit

Permalink
Merge pull request #24 from gdud/bugfix/replicas-hpa-enabled
Browse files Browse the repository at this point in the history
Do not set replicas when HPA is enabled
  • Loading branch information
mjwloch authored Apr 18, 2023
2 parents 642b183 + f6ccf36 commit 57efbf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/platform-service/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v1
appVersion: "1.1"
description: Platform service chart
name: platform-service
version: 1.2.1
version: 1.2.2
2 changes: 2 additions & 0 deletions charts/platform-service/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ spec:
strategy:
type: Recreate
{{- end }}
{{- if not .Values.hpa.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
app.kubernetes.io/name: {{ include "platform-service.name" . }}
Expand Down
2 changes: 1 addition & 1 deletion charts/platform-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
app: app # Required

version: v1
replicaCount: 1
replicaCount: 1 # This value is skipped in deployment when hpa.enabled is set to true

mergeAppMetrics: false

Expand Down

0 comments on commit 57efbf4

Please sign in to comment.