Dispatch remote commands before local cluster initialization
This commit is contained in:
parent
b0d2fa0d38
commit
e9ecd68070
|
|
@ -80,6 +80,9 @@ edge public IP.
|
|||
|
||||
### Operational cluster selection
|
||||
|
||||
The remote client uses Bash and Python's standard library; it does not load
|
||||
local inventory, kubeconfigs, or PyYAML. Cluster resolution happens on Debian.
|
||||
|
||||
CLI diagnostics, remote API/Temporal jobs, and the self-heal webhook share the
|
||||
inventory profile resolver. Persist the intended enrolled cluster on Debian:
|
||||
|
||||
|
|
|
|||
9
jeannie
9
jeannie
|
|
@ -2,6 +2,12 @@
|
|||
set -euo pipefail
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
# Remote execution resolves inventory and cluster identity on the server.
|
||||
# Keep the client independent of local cluster files and Python YAML packages.
|
||||
if [[ "${1:-}" == remote ]]; then
|
||||
exec "${REPO_ROOT}/scripts/jeannie-remote" "${@:2}"
|
||||
fi
|
||||
|
||||
BUILDX_CONFIG="/tmp/buildx-config.toml"
|
||||
HOMELAB_STATE_DIR="${HOMELAB_STATE_DIR:-${XDG_DATA_HOME:-${HOME}/.local/share}/homelab}"
|
||||
COSIGN_KEY_PREFIX="${COSIGN_KEY_PREFIX:-${HOMELAB_STATE_DIR}/cosign/cosign}"
|
||||
|
|
@ -516,9 +522,6 @@ case "${1:-}" in
|
|||
map)
|
||||
homelab_map "$@"
|
||||
;;
|
||||
remote)
|
||||
"${REPO_ROOT}/scripts/jeannie-remote" "${@:2}"
|
||||
;;
|
||||
validate)
|
||||
validate_homelab
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in New Issue