From 4b6bd3dfce0f9445452098383e96ccefbec34989 Mon Sep 17 00:00:00 2001 From: Pedro Juarez Date: Mon, 4 Dec 2023 15:49:56 -0800 Subject: [PATCH] STS env variables for mc are alias specific now (#1899) * STS env variables for mc are alias specific now Signed-off-by: pjuarezd --------- Signed-off-by: pjuarezd --- .../sts-example/sample-data/mc-job-setup-bucket.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/kustomization/sts-example/sample-data/mc-job-setup-bucket.yaml b/examples/kustomization/sts-example/sample-data/mc-job-setup-bucket.yaml index bcec4fe6d92..057fb55acdc 100644 --- a/examples/kustomization/sts-example/sample-data/mc-job-setup-bucket.yaml +++ b/examples/kustomization/sts-example/sample-data/mc-job-setup-bucket.yaml @@ -6,9 +6,9 @@ metadata: data: setup.sh: | #!/bin/bash - mc mb local/test-bucket -p && \ - mc mb local/other-bucket -p && \ - mc admin policy create local test-bucket-rw /start-config/bucket-policy.json + mc mb myminio/test-bucket -p && \ + mc mb myminio/other-bucket -p && \ + mc admin policy create myminio test-bucket-rw /start-config/bucket-policy.json bucket-policy.json: | { "Version": "2012-10-17", @@ -50,9 +50,9 @@ spec: - name: start-config mountPath: /start-config/ env: - - name: MC_HOST_local + - name: MC_HOST_myminio value: https://$(ACCESS_KEY):$(SECRET_KEY)@minio.minio-tenant-1.svc.cluster.local - - name: MC_STS_ENDPOINT + - name: MC_STS_ENDPOINT_myminio value: https://sts.minio-operator.svc.cluster.local:4223/sts/minio-tenant-1 - - name: MC_WEB_IDENTITY_TOKEN_FILE + - name: MC_WEB_IDENTITY_TOKEN_FILE_myminio value: /var/run/secrets/kubernetes.io/serviceaccount/token