prole/etc/lib/shell/knoe_cmd.sh
chrisfu e75e03fb3f fix(rebrand): rename prole_*.sh shell libs to knoe_*.sh
check_kerberos.sh (already updated) sourced knoe_env.sh, knoe_secrets.sh,
knoe_string.sh, and knoe_yaml.sh but the files were still named prole_*.sh.
No other script referenced the old names, so this is a pure rename.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-03 14:57:09 -07:00

11 lines
222 B
Bash

#!/usr/bin/env bash
knoe_kubectl_exec_cmd() {
local ns="$1"
local pod="$2"
local cmd="$3"
# Print a deterministic, shell-escaped command string.
printf 'kubectl -n %q exec %q -- sh -c %q' "$ns" "$pod" "$cmd"
}