prole/test_resolve.sh
chrisfu c0c7c5539c Refactor namespace handling to use prole.cfg as sole source of truth
- Removed all logic that read or set NAMESPACE/PROLE_NAMESPACE from the shell environment or wrote it to env.sh.

- prole.cfg is now the sole source of truth for the namespace value, loaded exclusively by prole_cfg.sh.

- etc/prole_cfg.sh & mock_val/prole_cfg.sh: Removed kubectl-context fallback and default for PROLE_NAMESPACE.

- Shell scripts (init_*.sh): Replaced NAMESPACE=${NAMESPACE:-...} with NAMESPACE="${PROLE_NAMESPACE}".

- Python (actions, environment, milestone): Removed env["PROLE_NAMESPACE"] from subprocess env dicts and env.sh.

- etc/init_cloudnative_pg.sh: Removed DB_PASSWORD env fallback for secret creation.

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-02 18:50:53 -08:00

10 lines
220 B
Bash

#!/bin/bash
source etc/prole_cfg.sh
TOKEN='${OPENBAO:kv/prole/prole-db001/k3s#token}'
RESOLVED=$(_prole_resolve_openbao_ref "$TOKEN")
if [[ -z "$RESOLVED" ]]; then
echo "FAILED_TO_RESOLVE"
else
echo "RESOLVED_OK"
fi