Skip to content

Commit 15570d8

Browse files
committed
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 <ilyes.bendlala@iteratec.com>
1 parent 26d6e76 commit 15570d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/minio-port-forward.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ fi
4848
print "$COLOR_EMPHASIS" "Starting minio instance on localhost:9000..\n"
4949

5050
print "Your access key: "
51-
ACCESS_KEY=$(kubectl get secret securecodebox-operator-minio -n securecodebox-system -o=jsonpath='{.data.accesskey}' |
51+
ACCESS_KEY=$(kubectl get secret securecodebox-operator-minio -n securecodebox-system -o=jsonpath='{.data.root-user}' |
5252
base64 --decode)
5353
print "$COLOR_EMPHASIS" "$ACCESS_KEY"
5454

5555
print "Your secret key: "
56-
SECRET_KEY=$(kubectl get secret securecodebox-operator-minio -n securecodebox-system -o=jsonpath='{.data.secretkey}' |
56+
SECRET_KEY=$(kubectl get secret securecodebox-operator-minio -n securecodebox-system -o=jsonpath='{.data.root-password}' |
5757
base64 --decode)
5858
print "$COLOR_EMPHASIS" "$SECRET_KEY"
5959

60-
kubectl port-forward -n securecodebox-system service/securecodebox-operator-minio "$HOST_PORT":9000
60+
kubectl port-forward -n securecodebox-system service/securecodebox-operator-minio "$HOST_PORT":9001

0 commit comments

Comments
 (0)