Skip to content

Ability to source secrets from file path #49

Description

@cpboyd

Use case: Vault sidecar injection e.g. https://www.vaultproject.io/docs/platform/k8s/injector/examples#environment-variable-example

Since the entrypoint is /chartmuseum, it's not possible to source as in Hashicorp's examples.

I've also attempted the following, but Kubernetes only seems to interpolate for variable names that have already been defined.

extraArgs:
  - --basic-auth-user=$(cat /vault/secrets/config | awk '{print $1}')
  - --basic-auth-pass=$(cat /vault/secrets/config | awk '{print $2}')

Maybe the optimal solution would be to simply allow a onStart script or something that happens before /chartmuseum starts, so that you could source the environment variables?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions