Skip to content

Commit

Permalink
STS env variables for mc are alias specific now (#1899)
Browse files Browse the repository at this point in the history
* STS env variables for mc are alias specific now

Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>

---------

Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
  • Loading branch information
pjuarezd committed Dec 4, 2023
1 parent 38dc7e3 commit 4b6bd3d
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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

0 comments on commit 4b6bd3d

Please sign in to comment.