From ea21cb82ebb71e0d159846aaeb39786e1d577913 Mon Sep 17 00:00:00 2001 From: choudham <117239476+choudham@users.noreply.github.com> Date: Thu, 12 Dec 2024 23:10:52 -0800 Subject: [PATCH] [bitnami/minio]: Templating sleep sleep time so that it can be passed using values.yaml (#30718) * Update provisioning-job.yaml Templating sleep time so that it can be passed using values.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update Chart.yaml Bumping Chart.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update README.md Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers * Update CHANGELOG.md Signed-off-by: Bitnami Containers * Update Chart.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update values.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update Chart.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update values.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update Chart.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update values.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update Chart.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update bitnami/minio/templates/provisioning-job.yaml Co-authored-by: David Gomez Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update bitnami/minio/values.yaml Signed-off-by: David Gomez * Update Chart.yaml Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> * Update CHANGELOG.md Signed-off-by: Bitnami Containers * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers --------- Signed-off-by: choudham <117239476+choudham@users.noreply.github.com> Signed-off-by: Bitnami Containers Signed-off-by: David Gomez Co-authored-by: Bitnami Containers Co-authored-by: David Gomez --- bitnami/minio/CHANGELOG.md | 7 ++++++- bitnami/minio/Chart.yaml | 2 +- bitnami/minio/README.md | 3 ++- bitnami/minio/templates/provisioning-job.yaml | 2 +- bitnami/minio/values.yaml | 3 +++ 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/bitnami/minio/CHANGELOG.md b/bitnami/minio/CHANGELOG.md index 018927219f0ddf..599d6376e0b414 100644 --- a/bitnami/minio/CHANGELOG.md +++ b/bitnami/minio/CHANGELOG.md @@ -1,8 +1,13 @@ # Changelog +## 14.10.0 (2024-12-12) + +* [bitnami/minio]: Templating sleep sleep time so that it can be passed using values.yaml ([#30718](https://github.com/bitnami/charts/pull/30718)) + ## 14.9.0 (2024-12-10) -* [bitnami/minio] Detect non-standard images ([#30924](https://github.com/bitnami/charts/pull/30924)) +* [bitnami/*] Add Bitnami Premium to NOTES.txt (#30854) ([3dfc003](https://github.com/bitnami/charts/commit/3dfc00376df6631f0ce54b8d440d477f6caa6186)), closes [#30854](https://github.com/bitnami/charts/issues/30854) +* [bitnami/minio] Detect non-standard images (#30924) ([a5d33d4](https://github.com/bitnami/charts/commit/a5d33d4add1c48085781da15b5d349c79b007595)), closes [#30924](https://github.com/bitnami/charts/issues/30924) ## 14.8.6 (2024-12-04) diff --git a/bitnami/minio/Chart.yaml b/bitnami/minio/Chart.yaml index 3ba9361768fc05..3c3199e74b9731 100644 --- a/bitnami/minio/Chart.yaml +++ b/bitnami/minio/Chart.yaml @@ -34,4 +34,4 @@ maintainers: name: minio sources: - https://github.com/bitnami/charts/tree/main/bitnami/minio -version: 14.9.0 +version: 14.10.0 diff --git a/bitnami/minio/README.md b/bitnami/minio/README.md index 039d23f2dc8c48..722ba3c4c99d32 100644 --- a/bitnami/minio/README.md +++ b/bitnami/minio/README.md @@ -315,6 +315,7 @@ You can enable this initContainer by setting `volumePermissions.enabled` to `tru | `statefulset.zones` | Number of zones (only for MinIO® distributed mode) | `1` | | `statefulset.drivesPerNode` | Number of drives attached to every node (only for MinIO® distributed mode) | `1` | | `provisioning.enabled` | Enable MinIO® provisioning Job | `false` | +| `provisioning.sleepTime` | Sleep time before checking Minio availability | `5` | | `provisioning.schedulerName` | Name of the k8s scheduler (other than default) for MinIO® provisioning | `""` | | `provisioning.nodeSelector` | Node labels for pod assignment. Evaluated as a template. | `{}` | | `provisioning.podLabels` | Extra labels for provisioning pods | `{}` | @@ -661,4 +662,4 @@ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and -limitations under the License. \ No newline at end of file +limitations under the License. diff --git a/bitnami/minio/templates/provisioning-job.yaml b/bitnami/minio/templates/provisioning-job.yaml index cdc3fefc835e12..132c4d194e2356 100644 --- a/bitnami/minio/templates/provisioning-job.yaml +++ b/bitnami/minio/templates/provisioning-job.yaml @@ -146,7 +146,7 @@ spec: # 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; + sleep {{ .Values.provisioning.sleepTime | default 5 }}; echo "Waiting for Minio to be available after restart"; wait-for-port \ --host={{ include "common.names.fullname" . }} \ diff --git a/bitnami/minio/values.yaml b/bitnami/minio/values.yaml index 6971ec59f605b1..1f95ab847a6cfc 100644 --- a/bitnami/minio/values.yaml +++ b/bitnami/minio/values.yaml @@ -240,6 +240,9 @@ provisioning: ## @param provisioning.enabled Enable MinIO® provisioning Job ## enabled: false + ## @param provisioning.sleepTime Sleep time before checking Minio availability + ## + sleepTime: 5 ## @param provisioning.schedulerName Name of the k8s scheduler (other than default) for MinIO® provisioning ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ ##