From 7d07f2d03720d0d3109ad811c5214708a715d533 Mon Sep 17 00:00:00 2001 From: wangyelei Date: Sat, 12 Oct 2024 15:48:47 +0800 Subject: [PATCH 1/2] fix: minio role probe failed --- addons/minio/templates/cmpd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/minio/templates/cmpd.yaml b/addons/minio/templates/cmpd.yaml index 3ee66c9db..4cca499b5 100644 --- a/addons/minio/templates/cmpd.yaml +++ b/addons/minio/templates/cmpd.yaml @@ -53,7 +53,7 @@ spec: roleProbe: exec: command: - - /bin/bash + - /bin/sh - -c - | mc config host add minio http://127.0.0.1:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD From 2631ed78cdb953283bb306b77622541969a0c576 Mon Sep 17 00:00:00 2001 From: wangyelei Date: Sat, 12 Oct 2024 17:34:07 +0800 Subject: [PATCH 2/2] fix bug --- addons/minio/templates/cmpd.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/minio/templates/cmpd.yaml b/addons/minio/templates/cmpd.yaml index 4cca499b5..fb68d5056 100644 --- a/addons/minio/templates/cmpd.yaml +++ b/addons/minio/templates/cmpd.yaml @@ -52,8 +52,9 @@ spec: lifecycleActions: roleProbe: exec: + image: {{ .Values.image.registry | default "docker.io" }}/{{ .Values.image.repository }}:{{ .Values.image.tag }} command: - - /bin/sh + - /bin/bash - -c - | mc config host add minio http://127.0.0.1:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD