Skip to content

Commit

Permalink
"fuzzy-pods": Tweak post-selection kubectl calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
damiendart committed Jul 15, 2024
1 parent 03d9494 commit bd4f797
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/fuzzy-pods
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,16 @@ case $SELECTED_ACTION in
help
;;
ctrl-d)
kubectl describe pod --namespace="$SELECTED_NAMESPACE" "$SELECTED_POD"
exec kubectl describe pod --namespace="$SELECTED_NAMESPACE" "$SELECTED_POD"
;;
ctrl-l)
kubectl logs --all-containers --namespace="$SELECTED_NAMESPACE" --tail=500 "$SELECTED_POD"
exec kubectl logs --all-containers --namespace="$SELECTED_NAMESPACE" --tail=500 "$SELECTED_POD"
;;
ctrl-y)
printf "%s" "$SELECTED_POD" | xsel -i --clipboard
echo "[✔] Copied \"$SELECTED_POD\" to the clipboard!"
;;
*)
kubectl exec -it --namespace="$SELECTED_NAMESPACE" "$SELECTED_POD" -- bash
exec kubectl exec -it --namespace="$SELECTED_NAMESPACE" "$SELECTED_POD" -- bash
;;
esac

0 comments on commit bd4f797

Please sign in to comment.