Skip to content

Commit 67ade30

Browse files
weltekialexellis
authored andcommitted
Always mount license in autoscaler
The OpenFaaS license was not mounted in the the autoscaler container when basic auth is disabled in the chart. This prevented the autoscaler from starting. Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
1 parent 5f5a368 commit 67ade30

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

chart/openfaas/templates/autoscaler-dep.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,17 @@ spec:
5151
value: "prometheus.{{ .Release.Namespace }}"
5252
- name: prometheus_port
5353
value: "9090"
54-
{{- if .Values.basic_auth }}
5554
- name: secret_mount_path
5655
value: "/var/secrets/autoscaler"
56+
{{- if .Values.basic_auth }}
5757
- name: basic_auth
58-
value: "{{ .Values.basic_auth }}"
58+
value: "true"
59+
{{- end }}
5960
volumeMounts:
6061
- name: license
6162
readOnly: true
6263
mountPath: "/var/secrets/license"
64+
{{- if .Values.basic_auth }}
6365
- name: auth
6466
readOnly: true
6567
mountPath: "/var/secrets/autoscaler"

chart/openfaas/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ openfaasImagePullPolicy: "Always"
3232
## Advanced auto-scaler for scaling functions on RPS, CPU and in-flight requests
3333
## Includes: scale to zero
3434
autoscaler:
35-
image: ghcr.io/openfaasltd/autoscaler:0.2.7
35+
image: ghcr.io/openfaasltd/autoscaler:0.2.9
3636
replicas: 1
3737
enabled: true
3838
resources:

0 commit comments

Comments
 (0)