Skip to content

Commit

Permalink
[bitnami/minio]: Option to use a secret. (#27837)
Browse files Browse the repository at this point in the history
* [bitnami/minio]: Optio to use a secret.

In some environments, Kubernetes secrets are not allowed and credentials
are mounted using some other mechanism (i.e. Vault sidecar injector).
This offers the option to operate without a Kubernetes secret.

Signed-off-by: Kubeshop <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <[email protected]>

* Update bitnami/minio/templates/standalone/deployment.yaml

Signed-off-by: Emil <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

* Update CHANGELOG.md

Signed-off-by: Bitnami Containers <[email protected]>

---------

Signed-off-by: Kubeshop <[email protected]>
Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: Emil <[email protected]>
Co-authored-by: Bitnami Containers <[email protected]>
  • Loading branch information
ed382 and bitnami-bot authored Aug 12, 2024
1 parent b449fa9 commit 5c21623
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions bitnami/minio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Changelog

## 14.6.33 (2024-08-07)
## 14.7.0 (2024-08-12)

* [bitnami/minio] Release 14.6.33 ([#28731](https://github.com/bitnami/charts/pull/28731))
* [bitnami/minio]: Option to use a secret. ([#27837](https://github.com/bitnami/charts/pull/27837))

## <small>14.6.32 (2024-08-03)</small>

Expand Down
2 changes: 1 addition & 1 deletion bitnami/minio/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ maintainers:
name: minio
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/minio
version: 14.6.33
version: 14.7.0
1 change: 1 addition & 0 deletions bitnami/minio/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru
| `auth.rootPasswordSecretKey` | Key where the MINIO_ROOT_USER password is being stored inside the existing secret `auth.existingSecret` | `""` |
| `auth.forcePassword` | Force users to specify required passwords | `false` |
| `auth.useCredentialsFiles` | Mount credentials as a files instead of using an environment variable | `false` |
| `auth.useSecret` | Uses a secret to mount the credential files. | `true` |
| `auth.forceNewKeys` | Force root credentials (user and password) to be reconfigured every time they change in the secrets | `false` |
| `defaultBuckets` | Comma, semi-colon or space separated list of buckets to create at initialization (only in standalone mode) | `""` |
| `disableWebUI` | Disable MinIO&reg; Web UI | `false` |
Expand Down
2 changes: 1 addition & 1 deletion bitnami/minio/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Return true if a secret object should be created
{{- define "minio.createSecret" -}}
{{- if .Values.auth.existingSecret -}}
{{- else -}}
{{- true -}}
{{- .Values.auth.useSecret -}}
{{- end -}}
{{- end -}}

Expand Down
4 changes: 2 additions & 2 deletions bitnami/minio/templates/standalone/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ spec:
- name: empty-dir
mountPath: /.mc
subPath: app-mc-dir
{{- if .Values.auth.useCredentialsFiles }}
{{- if and .Values.auth.useSecret .Values.auth.useCredentialsFiles }}
- name: minio-credentials
mountPath: /opt/bitnami/minio/secrets/
{{- end }}
Expand All @@ -250,7 +250,7 @@ spec:
volumes:
- name: empty-dir
emptyDir: {}
{{- if .Values.auth.useCredentialsFiles }}
{{- if and .Values.auth.useSecret .Values.auth.useCredentialsFiles }}
- name: minio-credentials
secret:
secretName: {{ include "minio.secretName" . }}
Expand Down
3 changes: 3 additions & 0 deletions bitnami/minio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ auth:
## @param auth.useCredentialsFiles Mount credentials as a files instead of using an environment variable
##
useCredentialsFiles: false
## @param auth.useSecret Uses a secret to mount the credential files.
##
useSecret: true
## @param auth.forceNewKeys Force root credentials (user and password) to be reconfigured every time they change in the secrets
##
forceNewKeys: false
Expand Down

0 comments on commit 5c21623

Please sign in to comment.