Skip to content

Commit

Permalink
Merge pull request #733 from lsst-sqre/tickets/DM-37390
Browse files Browse the repository at this point in the history
DM-37390: Improvements for non-persistent Redis
  • Loading branch information
rra authored Jan 4, 2023
2 parents 0734c4a + d2d05a7 commit 20b8531
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/redis/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: redis
version: 0.1.3
version: 0.1.4
description: Simple single-server Redis deployment with configurable storage
sources:
- https://github.com/lsst-sqre/charts/tree/master/charts/redis
Expand Down
6 changes: 4 additions & 2 deletions charts/redis/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ spec:
- name: "redis"
args:
- "redis-server"
{{- if .Values.persistence.enabled }}
- "--appendonly"
- "yes"
{{- end }}
{{- if (and .Values.config.secretName .Values.config.secretKey) }}
- "--requirepass"
- "$(REDIS_PASSWORD)"
Expand Down Expand Up @@ -70,11 +72,11 @@ spec:
runAsGroup: 999
{{- if (not .Values.persistence.enabled) }}
volumes:
- name: {{ template "redis.fullname" . }}
- name: "storage"
emptyDir: {}
{{- else if .Values.persistence.volumeClaimName }}
volumes:
- name: {{ template "redis.fullname" . }}
- name: "storage"
persistentVolumeClaim:
claimName: {{ .Values.persistence.volumeClaimName | quote }}
{{- end }}
Expand Down

0 comments on commit 20b8531

Please sign in to comment.