Skip to content

Commit b1f530c

Browse files
authored
[valkey] make valkey run on openshift (CloudPirates-io#206)
* make valkey run on openshift * Update the container security context key from "securityContext" to "containerSecurityContext" in the values schema file.
1 parent df4deeb commit b1f530c

File tree

5 files changed

+22
-24
lines changed

5 files changed

+22
-24
lines changed

charts/valkey/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-14T12:32:41.611162+02:00"
4+
version: 1.1.1
5+
digest: sha256:8da3c04e2c4a1ebfff4f21936399938e0f3fcf9fbd2f7135e7e907ce725b8f00
6+
generated: "2025-10-01T22:44:24.995595+02:00"

charts/valkey/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: valkey
33
description: High performance in-memory data structure store, fork of Redis. Valkey is an open-source, high-performance key/value datastore that supports a variety of workloads such as caching, message queues, and can act as a primary database.
44
type: application
5-
version: 0.3.2
5+
version: 0.4.0
66
appVersion: "8.1.3"
77
home: https://www.cloudpirates.io
88
sources:

charts/valkey/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,15 @@ The following table lists the configurable parameters of the Valkey chart and th
103103

104104
### Security Context
105105

106-
| Parameter | Description | Default |
107-
| ------------------------------------------ | ------------------------------------------------- | --------- |
108-
| `podSecurityContext.fsGroup` | Group ID for the volumes of the pod | `1000` |
109-
| `securityContext.allowPrivilegeEscalation` | Enable container privilege escalation | `false` |
110-
| `securityContext.runAsNonRoot` | Configure the container to run as a non-root user | `true` |
111-
| `securityContext.runAsUser` | User ID for the Valkey container | `999` |
112-
| `securityContext.runAsGroup` | Group ID for the Valkey container | `1000` |
113-
| `securityContext.readOnlyRootFilesystem` | Mount container root filesystem as read-only | `true` |
114-
| `securityContext.capabilities.drop` | Linux capabilities to be dropped | `["ALL"]` |
106+
| Parameter | Description | Default |
107+
| --------------------------------------------------- | ------------------------------------------------- | --------- |
108+
| `podSecurityContext.fsGroup` | Group ID for the volumes of the pod | `1000` |
109+
| `containerSecurityContext.allowPrivilegeEscalation` | Enable container privilege escalation | `false` |
110+
| `containerSecurityContext.runAsNonRoot` | Configure the container to run as a non-root user | `true` |
111+
| `containerSecurityContext.runAsUser` | User ID for the Valkey container | `999` |
112+
| `containerSecurityContext.runAsGroup` | Group ID for the Valkey container | `1000` |
113+
| `containerSecurityContext.readOnlyRootFilesystem` | Mount container root filesystem as read-only | `true` |
114+
| `containerSecurityContext.capabilities.drop` | Linux capabilities to be dropped | `["ALL"]` |
115115

116116
### Valkey Authentication
117117

charts/valkey/templates/statefulset.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,11 @@ spec:
3131
{{- with (include "valkey.imagePullSecrets" .) }}
3232
{{ . | nindent 6 }}
3333
{{- end }}
34-
securityContext:
35-
{{- toYaml .Values.podSecurityContext | nindent 8 }}
34+
securityContext: {{ include "common.renderPodSecurityContext" . | nindent 8 }}
3635
serviceAccountName: {{ include "valkey.serviceAccountName" . }}
3736
containers:
3837
- name: {{ .Chart.Name }}
39-
securityContext:
40-
{{- toYaml .Values.securityContext | nindent 12 }}
38+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
4139
image: {{ include "valkey.image" . }}
4240
imagePullPolicy: {{ .Values.image.imagePullPolicy }}
4341
command:

charts/valkey/values.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ podSecurityContext:
4141
## @param podSecurityContext.fsGroup Group ID for the volumes of the pod
4242
fsGroup: 1000
4343

44-
securityContext:
45-
## @param securityContext.allowPrivilegeEscalation Enable container privilege escalation
44+
containerSecurityContext:
45+
## @param containerSecurityContext.allowPrivilegeEscalation Enable container privilege escalation
4646
allowPrivilegeEscalation: false
47-
## @param securityContext.runAsNonRoot Configure the container to run as a non-root user
47+
## @param containerSecurityContext.runAsNonRoot Configure the container to run as a non-root user
4848
runAsNonRoot: true
49-
## @param securityContext.runAsUser User ID for the Valkey container
49+
## @param containerSecurityContext.runAsUser User ID for the Valkey container
5050
runAsUser: 999
51-
## @param securityContext.runAsGroup Group ID for the Valkey container
51+
## @param containerSecurityContext.runAsGroup Group ID for the Valkey container
5252
runAsGroup: 1000
53-
## @param securityContext.readOnlyRootFilesystem Mount container root filesystem as read-only
53+
## @param containerSecurityContext.readOnlyRootFilesystem Mount container root filesystem as read-only
5454
readOnlyRootFilesystem: true
55-
## @param securityContext.capabilities.drop Linux capabilities to be dropped
55+
## @param containerSecurityContext.capabilities.drop Linux capabilities to be dropped
5656
capabilities:
5757
drop:
5858
- ALL

0 commit comments

Comments
 (0)