operator icon indicating copy to clipboard operation
operator copied to clipboard

How to use ak/sk from file path rather than values

Open yuki-node opened this issue 4 months ago • 1 comments

I want to use the ak/sk from a file, such as /auth/ak & /auth/sk.

I try to change the tenant-configuration.yaml

apiVersion: v1
kind: Secret
metadata:
  name: {{ dig "tenant" "configSecret" "name" "" (.Values | merge (dict)) }}
type: Opaque
stringData:
  config.env: |-
    # export MINIO_ROOT_USER={{ .Values.tenant.configSecret.accessKey | quote }}
    # export MINIO_ROOT_PASSWORD={{ .Values.tenant.configSecret.secretKey | quote }}

    export MINIO_ROOT_USER=$(cat /auth/ak)
    export MINIO_ROOT_PASSWORD=$(cat /auth/sk)

It doesn't work.

yuki-node avatar Oct 11 '25 09:10 yuki-node

Can I add these parameters?

Image

yuki-node avatar Oct 11 '25 09:10 yuki-node