Bartek Grzybowski | 5ee1e95 | 2021-02-03 15:01:34 +0100 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | if [[ $@ =~ 'up' ]]; | ||||
4 | then | ||||
5 | # If the operation is 'rke up' then simulate rke up operation | ||||
6 | echo $@ | ||||
7 | touch {{ cluster_config_dir }}/kube_config_cluster.yml | ||||
8 | elif [[ $@ =~ 'version' ]]; | ||||
9 | then | ||||
10 | {{ app_data_path }}/downloads/rke_linux-amd64_real version | ||||
11 | exit 0 | ||||
12 | else | ||||
13 | {{ app_data_path }}/downloads/rke_linux-amd64_real $@ | ||||
14 | fi |