Skip to content

Commit

Permalink
user alternative basic-auth format when ingressclass is haproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
splattner committed Jun 15, 2023
1 parent 4bdabda commit 5b05d98
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/charts/webshell/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: webshell
description: A Helm chart to deploy a webshell environment
type: application
version: 0.2.25
appVersion: "0.2.25"
version: 0.3.0
appVersion: "0.3.0"
4 changes: 4 additions & 0 deletions deploy/charts/webshell/templates/secret-basicauth.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ metadata:
{{- include "webshell.labels" . | nindent 4 }}
type: Opaque
data:
{{ if .Values.ingress.className == "haproxy"}}
{{ .Values.user }}: {{ .Values.password | b64enc | quote }}
{{ else }}
auth: {{ (htpasswd .Values.user .Values.password) | b64enc | quote }}
{{ end }}

0 comments on commit 5b05d98

Please sign in to comment.