Skip to content

Commit 18c7be5

Browse files
authored
[minio] make minio run on openshift (CloudPirates-io#203)
* make minio run on openshift * update readme, use new container securitycontext variable
1 parent 250b562 commit 18c7be5

File tree

5 files changed

+19
-21
lines changed

5 files changed

+19
-21
lines changed

charts/minio/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:33.889806+02:00"
4+
version: 1.1.1
5+
digest: sha256:8da3c04e2c4a1ebfff4f21936399938e0f3fcf9fbd2f7135e7e907ce725b8f00
6+
generated: "2025-10-01T22:07:26.882147+02:00"

charts/minio/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: minio
33
description: High Performance Object Storage compatible with Amazon S3 APIs
44
type: application
5-
version: 0.2.4
5+
version: 0.3.0
66
appVersion: "2025.09.07"
77
keywords:
88
- minio

charts/minio/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ The following table lists the configurable parameters of the MinIO chart and the
133133
| Parameter | Description | Default |
134134
| ------------------------------------------ | ------------------------------------------------- | --------- |
135135
| `podSecurityContext.fsGroup` | Group ID for the volumes of the pod | `1000` |
136-
| `securityContext.allowPrivilegeEscalation` | Enable container privilege escalation | `false` |
137-
| `securityContext.runAsNonRoot` | Configure the container to run as a non-root user | `true` |
138-
| `securityContext.runAsUser` | User ID for the MinIO container | `1000` |
139-
| `securityContext.runAsGroup` | Group ID for the MinIO container | `1000` |
140-
| `securityContext.readOnlyRootFilesystem` | Mount container root filesystem as read-only | `true` |
141-
| `securityContext.capabilities.drop` | Linux capabilities to be dropped | `["ALL"]` |
136+
| `containerSecurityContext.allowPrivilegeEscalation` | Enable container privilege escalation | `false` |
137+
| `containerSecurityContext.runAsNonRoot` | Configure the container to run as a non-root user | `true` |
138+
| `containerSecurityContext.runAsUser` | User ID for the MinIO container | `1000` |
139+
| `containerSecurityContext.runAsGroup` | Group ID for the MinIO container | `1000` |
140+
| `containerSecurityContext.readOnlyRootFilesystem` | Mount container root filesystem as read-only | `true` |
141+
| `containerSecurityContext.capabilities.drop` | Linux capabilities to be dropped | `["ALL"]` |
142142

143143
### Service configuration
144144

charts/minio/templates/deployment.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ spec:
3232
{{- with (include "minio.imagePullSecrets" .) }}
3333
{{ . | nindent 6 }}
3434
{{- end }}
35-
securityContext:
36-
{{- toYaml .Values.podSecurityContext | nindent 8 }}
35+
securityContext: {{ include "common.renderPodSecurityContext" . | nindent 8 }}
3736
containers:
3837
- name: {{ .Chart.Name }}
39-
securityContext:
40-
{{- toYaml .Values.securityContext | nindent 12 }}
38+
securityContext: {{ include "common.renderContainerSecurityContext" . | nindent 12 }}
4139
image: {{ include "minio.image" . }}
4240
imagePullPolicy: {{ .Values.image.imagePullPolicy }}
4341
command: ["/bin/sh"]

charts/minio/values.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ podSecurityContext:
8585
## @param podSecurityContext.fsGroup Group ID for the volumes of the pod
8686
fsGroup: 1001
8787

88-
securityContext:
89-
## @param securityContext.allowPrivilegeEscalation Enable container privilege escalation
88+
containerSecurityContext:
89+
## @param containerSecurityContext.allowPrivilegeEscalation Enable container privilege escalation
9090
allowPrivilegeEscalation: false
91-
## @param securityContext.runAsNonRoot Configure the container to run as a non-root user
91+
## @param containerSecurityContext.runAsNonRoot Configure the container to run as a non-root user
9292
runAsNonRoot: true
93-
## @param securityContext.runAsUser User ID for the MinIO container
93+
## @param containerSecurityContext.runAsUser User ID for the MinIO container
9494
runAsUser: 1001
95-
## @param securityContext.runAsGroup Group ID for the MinIO container
95+
## @param containerSecurityContext.runAsGroup Group ID for the MinIO container
9696
runAsGroup: 1001
97-
## @param securityContext.readOnlyRootFilesystem Mount container root filesystem as read-only
97+
## @param containerSecurityContext.readOnlyRootFilesystem Mount container root filesystem as read-only
9898
readOnlyRootFilesystem: true
99-
## @param securityContext.capabilities.drop Linux capabilities to be dropped
99+
## @param containerSecurityContext.capabilities.drop Linux capabilities to be dropped
100100
capabilities:
101101
drop:
102102
- ALL

0 commit comments

Comments
 (0)