Skip to content

Instantly share code, notes, and snippets.

@sebastienblanc
Created April 7, 2021 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sebastienblanc/81f41e9504c705b0dab123b24b2f5a53 to your computer and use it in GitHub Desktop.
Save sebastienblanc/81f41e9504c705b0dab123b24b2f5a53 to your computer and use it in GitHub Desktop.
#!/bin/bash
kubectl cluster-info
while true; do
read -p "Do you want to apply this resource ?" yn
case $yn in
[Yy]* ) kubectl apply -f $1;exit;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment