Skip to content

Commit 6080615

Browse files
committed
Remove basic-auth-plugin for CE
This is no longer required as it's built into the CE gateway. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 0d17553 commit 6080615

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

chart/openfaas/templates/NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ To verify that openfaas has started, run:
33
kubectl -n {{ .Release.Namespace }} get deployments -l "release={{ .Release.Name }}, app={{ template "openfaas.name" . }}"
44

55
{{- if .Values.generateBasicAuth }}
6+
67
To retrieve the admin password, run:
78

89
echo $(kubectl -n {{ .Release.Namespace }} get secret basic-auth -o jsonpath="{.data.basic-auth-password}" | base64 --decode)

chart/openfaas/templates/basic-auth-plugin-dep.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{{- $functionNs := default .Release.Namespace .Values.functionNamespace }}
22
{{- if .Values.basic_auth }}
3+
{{- if .Values.openfaasPro }}
34
{{- if not .Values.oidcAuthPlugin.enabled }}
45
---
56
apiVersion: apps/v1
@@ -104,3 +105,4 @@ spec:
104105

105106
{{- end }}
106107
{{- end }}
108+
{{- end }}

chart/openfaas/templates/gateway-dep.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,14 @@ spec:
164164
- name: auth_pass_body
165165
value: "false"
166166
{{- else }}
167+
{{- if .Values.openfaasPro }}
167168
- name: auth_proxy_url
168169
value: "http://basic-auth-plugin.{{ .Release.Namespace }}:8080/validate"
169170
- name: auth_pass_body
170171
value: "false"
171172
{{- end }}
172173
{{- end }}
174+
{{- end }}
173175
- name: scale_from_zero
174176
value: "{{ .Values.gateway.scaleFromZero }}"
175177
- name: max_idle_conns

0 commit comments

Comments
 (0)