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
|
2024-09-17 06:56:35 +00:00
|
|
|
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)"
|