added todos

pull/1/head
Daniel Mikula 2023-05-16 06:34:03 +02:00
parent 9acb0b9bb0
commit 893d23d4e9
1 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,8 @@
# Author : NTT Data AG # Author : NTT Data AG
# Date : 11-05-2023 # Date : 11-05-2023
# TODO: create check for flags. needs to be run first.
helm_install=false helm_install=false
app_name="" app_name=""
@ -41,11 +43,12 @@ install_git () {
install_sock_shop () { install_sock_shop () {
git clone https://github.com/microservices-demo/microservices-demo.git git clone https://github.com/microservices-demo/microservices-demo.git
cd deploy/kubernetes cd microservices-demo/deploy/kubernetes
kubectl create namespace sock-shop kubectl create namespace sock-shop
kubectl apply -f complete-demo.yaml kubectl apply -f complete-demo.yaml
echo "Getting Pods from sock-shop namespace" echo "Getting Pods from sock-shop namespace"
kubectl get pods -n sock-shop kubectl get pods -n sock-shop
# TODO: create check if list with pods returns and if they are ready
} }
show_help() { show_help() {
@ -54,7 +57,7 @@ Usage: $0 [options]
Options: Options:
-h, --help Show help information -h, --help Show help information
-m, --helm Install Helm -m, --helm Install Helm. Set flag when you want to install helm.
-a, --app <app_name> Specify the app name -a, --app <app_name> Specify the app name
EOF EOF
} }