Created
April 7, 2021 09:53
-
-
Save sebastienblanc/81f41e9504c705b0dab123b24b2f5a53 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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