#!@ENV_ABSOLUTE_PATH@ bash [[ "${BASH_SOURCE[0]}" != "${0}" ]] || { >&2 cat <] []" Switch to the given namespace and context. More information may be found in the kontext(1) man page. EOF return 1 else TMP_KUBECONFIG=$(mktemp -t kubeconfig-XXXXXX) kubectl config view --raw > "$TMP_KUBECONFIG" export KUBECONFIG="$TMP_KUBECONFIG" kubectl config use-context "$CTX" && \ kubectl config set-context --current --namespace="$NAMESPACE" fi } kontext_func "$@"