-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include the redis sub-chart dependency (#7)
* Design of including the redis sub-chart dependency * Changing the sessionStorage to a string input based * Adding redis deployment dep * Moving redis passwords to secret * Adding the redis secret resource * Adding new existingSecret documentation in README * Removing lint error * Update Chart.yaml Bumping up the chart version. * add ci test for redis standalone case * Changing the redis secret name due to ci clash
- Loading branch information
1 parent
3a98e77
commit 9c0ad1c
Showing
6 changed files
with
110 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
sessionStorage: | ||
type: redis | ||
redis: | ||
clientType: "standalone" | ||
standalone: | ||
connectionUrl: "redis://oauth2-proxy-redis-master:6379" | ||
redis: | ||
# provision an instance of the redis sub-chart | ||
enabled: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{- if and (eq .Values.sessionStorage.type "redis") (not .Values.sessionStorage.redis.existingSecret) }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
labels: | ||
app: {{ template "oauth2-proxy.name" . }} | ||
chart: {{ template "oauth2-proxy.chart" . }} | ||
heritage: {{ .Release.Service }} | ||
release: {{ .Release.Name }} | ||
name: {{ template "oauth2-proxy.fullname" . }}-redis-access | ||
type: Opaque | ||
data: | ||
redis-password: {{ .Values.sessionStorage.redis.password | b64enc | quote }} | ||
redis-sentinel-password: {{ .Values.sessionStorage.redis.sentinel.password | b64enc | quote }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters