Skip to content

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

@yuki-node

Description

@yuki-node

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions