infra/.envrc

15 lines
625 B
Text
Raw Permalink Normal View History

2024-09-10 07:33:09 +00:00
if command -v colordiff > /dev/null; then
export KUBECTL_EXTERNAL_DIFF="colordiff -N -u"
fi
kubeconfig=$(git rev-parse --show-toplevel)/.kubeconfig
if [ -f "${kubeconfig}" ]; then
export KUBECONFIG="${kubeconfig}"
fi
export VAULT_ADDR=https://openbao.k8s.home.finn.io
export VAULT_TOKEN="$(jq -r .root_token bao-root.json)"
export KEYCLOAK_CLIENT_ID="$(bao kv get -format=json static-secrets/tofu/default/oidc-client-credentials-tofu | jq -r .data.data.client_id)"
export KEYCLOAK_CLIENT_SECRET="$(bao kv get -format=json static-secrets/tofu/default/oidc-client-credentials-tofu | jq -r .data.data.client_secret)"