mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 12:03:59 +00:00
- 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>
10 lines
220 B
Bash
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
|