case interactive - cert verify

pull/584/head
Sujith Abdul Rahim 2020-04-28 13:36:52 +05:30
parent 4900dd558f
commit d34d9075d8
1 changed files with 48 additions and 27 deletions

21
vagrant/cert_verify.sh Normal file → Executable file
View File

@ -704,6 +704,16 @@ check_cert_worker_1_kp()
# END OF Function - Worker-1 node #
echo -e "This script will validate the certificates in master as well as worker-1 nodes. Before proceeding, make sure you ssh into the respective node for certificate validation\n"
echo -e "1. Verify certification in Master Node\n"
echo -e "2. Verify certification in Worker-1 Node\n"
echo -e "Please select either the option 1 or 2\n"
read value
case $value in
1)
echo -e "The selected option is $value, proceeding the certificate verification of Master node"
### MASTER NODES ###
@ -731,6 +741,10 @@ check_systemd_ks
### END OF MASTER NODES ###
;;
2)
echo -e "The selected option is $value, proceeding the certificate verification of Worker-1 node"
### WORKER-1 NODE ###
@ -740,3 +754,10 @@ check_cert_worker_1_kubelet
check_cert_worker_1_kp
### END OF WORKER-1 NODE ###
;;
*)
echo -e "Exiting.... Please select the valid option either 1 or 2\n"
exit 1
;;
esac