k8s.zsh 165 B

12345
  1. tmp_dir="$XDG_RUNTIME_DIR/kubeconfig"
  2. mkdir -p "$tmp_dir"
  3. tmp_config=$(mktemp -p "$tmp_dir")
  4. export KUBECONFIG="$tmp_config:$HOME/.kube/config"
  5. export IN_K8S="true"