Skip to content

Commit a008d26

Browse files
authored
Merge pull request #183 from dumitraand/ad/create-hpa-on-demand
[charts/metabase] Allow external managed HPA
2 parents 31d5f6a + a6d8b68 commit a008d26

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

charts/metabase/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description:
33
The easy, open source way for everyone in your company to ask questions
44
and learn from data.
55
name: metabase
6-
version: 2.27.2
6+
version: 2.27.3
77
appVersion: v0.60.3.x
88
maintainers:
99
- name: pmint93

charts/metabase/templates/hpa.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.hpa.enabled }}
1+
{{- if and .Values.hpa.enabled (not .Values.hpa.external) }}
22
apiVersion: {{ template "hpa.apiVersion" . }}
33
kind: HorizontalPodAutoscaler
44
metadata:

charts/metabase/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ replicaCount: 1
22

33
hpa:
44
enabled: false
5+
# If external: false, the HPA will be managed by the chart
6+
# If external: true, the HPA will not be created by the chart
7+
# Useful for external HPA controllers such as KEDA.
8+
external: false
59
minReplicas: 1
610
maxReplicas: 6
711
targetCPUUtilizationPercentage: 80

0 commit comments

Comments
 (0)