Skip to content
Snippets Groups Projects
Verified Commit 06d52d47 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: improve redis support

parent d746a522
No related branches found
No related tags found
No related merge requests found
Pipeline #2794 passed
...@@ -47,7 +47,7 @@ spec: ...@@ -47,7 +47,7 @@ spec:
name: {{ include "oauth2-proxy-helm.fullname" . }} name: {{ include "oauth2-proxy-helm.fullname" . }}
key: cookie-secret key: cookie-secret
{{ if .Values.redis.enabled }} {{ if .Values.redis.enabled }}
{{ if ne .Values.redis.password "" }} {{ if .Values.redis.password }}
- name: OAUTH2_PROXY_REDIS_PASSWORD - name: OAUTH2_PROXY_REDIS_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
...@@ -66,6 +66,7 @@ spec: ...@@ -66,6 +66,7 @@ spec:
- "--http-address=0.0.0.0:4180" - "--http-address=0.0.0.0:4180"
- "--provider=oidc" - "--provider=oidc"
{{ if .Values.redis.enabled }} {{ if .Values.redis.enabled }}
- "--session-store-type=redis"
- "--redis-connection-url=redis://{{ .Values.redis.host }}/{{ .Values.redis.database }}" - "--redis-connection-url=redis://{{ .Values.redis.host }}/{{ .Values.redis.database }}"
{{ end }} {{ end }}
ports: ports:
......
...@@ -9,5 +9,7 @@ stringData: ...@@ -9,5 +9,7 @@ stringData:
client-secret: "{{ .Values.oidc.clientSecret }}" client-secret: "{{ .Values.oidc.clientSecret }}"
cookie-secret: "{{ .Values.cookieSecret }}" cookie-secret: "{{ .Values.cookieSecret }}"
{{ if .Values.redis.enabled }} {{ if .Values.redis.enabled }}
{{ if .Values.redis.password }}
redis-password: "{{ .Values.redis.password }}" redis-password: "{{ .Values.redis.password }}"
{{ end }} {{ end }}
{{ end }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment