mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 06:47:25 +08:00
[bitnami/minio] fix: 🐛 Add sleep to avoid race condition in provisioning (#29478)
* [bitnami/minio] fix: 🐛 Add sleep to avoid race condition in provisioning Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> * fix: 🐛 Change YAML string format Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com> --------- Signed-off-by: Javier J. Salmerón García <javier.salmeron@broadcom.com> Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com> Co-authored-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
committed by
GitHub
parent
6182dc59c2
commit
c522a3c203
@@ -1,8 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## 14.7.9 (2024-09-16)
|
||||
## 14.7.10 (2024-09-17)
|
||||
|
||||
* [bitnami/minio] Release 14.7.9 ([#29455](https://github.com/bitnami/charts/pull/29455))
|
||||
* [bitnami/minio] fix: :bug: Add sleep to avoid race condition in provisioning ([#29478](https://github.com/bitnami/charts/pull/29478))
|
||||
|
||||
## <small>14.7.9 (2024-09-16)</small>
|
||||
|
||||
* [bitnami/minio] Release 14.7.9 (#29455) ([f0e7a10](https://github.com/bitnami/charts/commit/f0e7a10b383dac974d6704604e7cebbb355cccef)), closes [#29455](https://github.com/bitnami/charts/issues/29455)
|
||||
|
||||
## <small>14.7.8 (2024-09-11)</small>
|
||||
|
||||
@@ -38,9 +42,12 @@
|
||||
|
||||
## 14.7.0 (2024-08-12)
|
||||
|
||||
* [bitnami/minio] Release 14.6.33 (#28731) ([558c1f8](https://github.com/bitnami/charts/commit/558c1f8056152e5d16fdf35db29c4028a31453fe)), closes [#28731](https://github.com/bitnami/charts/issues/28731)
|
||||
* [bitnami/minio]: Option to use a secret. (#27837) ([5c21623](https://github.com/bitnami/charts/commit/5c2162370dd5d99d4df91f36b1fcc778ac604673)), closes [#27837](https://github.com/bitnami/charts/issues/27837)
|
||||
|
||||
## <small>14.6.33 (2024-08-07)</small>
|
||||
|
||||
* [bitnami/minio] Release 14.6.33 (#28731) ([558c1f8](https://github.com/bitnami/charts/commit/558c1f8056152e5d16fdf35db29c4028a31453fe)), closes [#28731](https://github.com/bitnami/charts/issues/28731)
|
||||
|
||||
## <small>14.6.32 (2024-08-03)</small>
|
||||
|
||||
* [bitnami/minio] Release 14.6.32 (#28650) ([eea4d67](https://github.com/bitnami/charts/commit/eea4d67577c35ec1a206109ec7e59fe565922fa8)), closes [#28650](https://github.com/bitnami/charts/issues/28650)
|
||||
|
||||
@@ -34,4 +34,4 @@ maintainers:
|
||||
name: minio
|
||||
sources:
|
||||
- https://github.com/bitnami/charts/tree/main/bitnami/minio
|
||||
version: 14.7.9
|
||||
version: 14.7.10
|
||||
|
||||
@@ -79,7 +79,7 @@ spec:
|
||||
command:
|
||||
- /bin/bash
|
||||
- -c
|
||||
- >-
|
||||
- |-
|
||||
set -e;
|
||||
echo "Start Minio provisioning";
|
||||
|
||||
@@ -143,6 +143,18 @@ spec:
|
||||
|
||||
mc admin service restart {{ $minioAlias }} --wait --json;
|
||||
|
||||
# Adding a sleep to ensure that the check below does not cause
|
||||
# a race condition. We check for the MinIO port because the
|
||||
# "mc admin service restart --wait" command is not working as expected
|
||||
sleep 5;
|
||||
echo "Waiting for Minio to be available after restart";
|
||||
wait-for-port \
|
||||
--host={{ include "common.names.fullname" . }} \
|
||||
--state=inuse \
|
||||
--timeout=120 \
|
||||
{{ .Values.service.ports.api | int64 }};
|
||||
echo "Minio is available. Executing provisioning commands";
|
||||
|
||||
{{- range $policy := .Values.provisioning.policies }}
|
||||
mc admin policy create {{ $minioAlias }} {{ $policy.name }} /etc/ilm/policy-{{ $policy.name }}.json;
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user