infra/.envrc

14 lines
625 B
Bash

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)"