Skip to content

Commit cc4d3c3

Browse files
authored
[redis] make redis run on openshift (CloudPirates-io#193)
make redis run on openshift
1 parent 8066d07 commit cc4d3c3

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

charts/redis/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies:
22
- name: common
33
repository: oci://registry-1.docker.io/cloudpirates
4-
version: 1.0.0
5-
digest: sha256:4dc4489391e65614af4cd64d56a213e353a7a70b231faf64c584779774304d96
6-
generated: "2025-08-15T10:49:14.642643+02:00"
4+
version: 1.1.1
5+
digest: sha256:8da3c04e2c4a1ebfff4f21936399938e0f3fcf9fbd2f7135e7e907ce725b8f00
6+
generated: "2025-09-30T20:54:19.733262+02:00"

charts/redis/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: redis
33
description: An open source, in-memory data structure store used as a database, cache, and message broker.
44
type: application
5-
version: 0.4.6
5+
version: 0.5.0
66
appVersion: "8.2.1"
77
keywords:
88
- redis

charts/redis/templates/statefulset.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ spec:
3131
{{- with (include "redis.imagePullSecrets" .) }}
3232
{{ . | nindent 6 }}
3333
{{- end }}
34-
securityContext:
35-
{{- toYaml .Values.podSecurityContext | nindent 8 }}
34+
securityContext: {{ include "common.renderPodSecurityContext" . | nindent 8 }}
3635
{{- with .Values.topologySpreadConstraints }}
3736
topologySpreadConstraints:
3837
{{- toYaml . | nindent 8 }}
@@ -145,7 +144,7 @@ spec:
145144
{{- end }}
146145
containers:
147146
- name: {{ .Chart.Name }}
148-
securityContext: {{- toYaml .Values.containerSecurityContext | nindent 12 }}
147+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
149148
image: {{ include "redis.image" . | quote }}
150149
imagePullPolicy: {{ include "common.imagePullPolicy" (dict "image" .Values.image) }}
151150
command:
@@ -252,7 +251,7 @@ spec:
252251
{{- end }}
253252
{{- if and .Values.sentinel.enabled (eq .Values.architecture "replication") }}
254253
- name: sentinel
255-
securityContext: {{- toYaml .Values.containerSecurityContext | nindent 12 }}
254+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
256255
image: {{ include "redis.sentinel.image" . | quote }}
257256
imagePullPolicy: {{ include "common.imagePullPolicy" (dict "image" .Values.sentinel.image) }}
258257
{{- if .Values.sentinel.extraVolumeMounts }}
@@ -387,7 +386,7 @@ spec:
387386
{{- end }}
388387
{{- if .Values.metrics.enabled }}
389388
- name: metrics
390-
securityContext: {{- toYaml .Values.containerSecurityContext | nindent 12 }}
389+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
391390
image: {{ include "redis.metrics.image" . | quote }}
392391
imagePullPolicy: {{ include "common.imagePullPolicy" (dict "image" .Values.metrics.image) }}
393392
{{- if .Values.auth.enabled }}

0 commit comments

Comments
 (0)