From 15570d8bbff2d0356b8a06398fdcff21d80f65fe Mon Sep 17 00:00:00 2001 From: Ilyes Ben Dlala Date: Wed, 12 Oct 2022 09:45:03 +0200 Subject: [PATCH] fix(minio): Fixed port forward script to fit change to bitnami minio charts in #1340 In #1340 we changed from using official minio helm charts to the bitnami minio charts. This is done because we deemed them more stable and mature As a result the secrets json file has a different schema: .data.accesskey --> .data.root-user .data.secretkey --> .data.root-password The exposed ports are also now divided into API:9000 and Console:9001 src: https://artifacthub.io/packages/helm/bitnami/minio Signed-off-by: Ilyes Ben Dlala --- bin/minio-port-forward.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/minio-port-forward.sh b/bin/minio-port-forward.sh index 792e2d202..1317bd3c0 100755 --- a/bin/minio-port-forward.sh +++ b/bin/minio-port-forward.sh @@ -48,13 +48,13 @@ fi print "$COLOR_EMPHASIS" "Starting minio instance on localhost:9000..\n" print "Your access key: " -ACCESS_KEY=$(kubectl get secret securecodebox-operator-minio -n securecodebox-system -o=jsonpath='{.data.accesskey}' | +ACCESS_KEY=$(kubectl get secret securecodebox-operator-minio -n securecodebox-system -o=jsonpath='{.data.root-user}' | base64 --decode) print "$COLOR_EMPHASIS" "$ACCESS_KEY" print "Your secret key: " -SECRET_KEY=$(kubectl get secret securecodebox-operator-minio -n securecodebox-system -o=jsonpath='{.data.secretkey}' | +SECRET_KEY=$(kubectl get secret securecodebox-operator-minio -n securecodebox-system -o=jsonpath='{.data.root-password}' | base64 --decode) print "$COLOR_EMPHASIS" "$SECRET_KEY" -kubectl port-forward -n securecodebox-system service/securecodebox-operator-minio "$HOST_PORT":9000 +kubectl port-forward -n securecodebox-system service/securecodebox-operator-minio "$HOST_PORT":9001