diff --git a/.gitignore b/.gitignore index e69de29..2f7896d 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +target/ diff --git a/Makefile b/Makefile index fc333d7..08930ff 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ deploy: - ./flink-cluster/deploy.sh + ./flink-cluster/deploy.sh apply undeploy: - ./flink-cluster/undeploy.sh \ No newline at end of file + ./flink-cluster/deploy.sh delete \ No newline at end of file diff --git a/flink-cluster/deploy.sh b/flink-cluster/deploy.sh index 0195e6d..bc3f1b6 100755 --- a/flink-cluster/deploy.sh +++ b/flink-cluster/deploy.sh @@ -1,5 +1,5 @@ #!/bin/bash YAML_PATH="flink-cluster" for f in $(ls $YAML_PATH | grep yaml); do - kubectl apply -f $YAML_PATH/$f + kubectl $@ -f $YAML_PATH/$f done \ No newline at end of file diff --git a/flink-cluster/undeploy.sh b/flink-cluster/undeploy.sh deleted file mode 100755 index 8923907..0000000 --- a/flink-cluster/undeploy.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -YAML_PATH="flink-cluster" -for f in $(ls $YAML_PATH | grep yaml); do - kubectl delete -f $YAML_PATH/$f -done \ No newline at end of file