Skip to content

Commit

Permalink
Ensure ~/.kube dir;
Browse files Browse the repository at this point in the history
  • Loading branch information
ycliuhw committed Mar 14, 2022
1 parent 7e66a48 commit 4c8977e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/suites/ck/ck.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run_deploy_ck() {
echo

local name model_name file overlay_path storage_path
local name model_name file overlay_path kube_home storage_path
name="${2}"
model_name="${name}"
file="${TEST_DIR}/${model_name}.log"
Expand All @@ -18,7 +18,9 @@ run_deploy_ck() {
wait_for "active" '.applications["kubernetes-master"] | ."application-status".current'
wait_for "active" '.applications["kubernetes-worker"] | ."application-status".current'

juju scp kubernetes-master/0:config ~/.kube/config
kube_home="${HOME}/.kube"
mkdir -p "${kube_home}"
juju scp kubernetes-master/0:config "${kube_home}/config"

kubectl cluster-info
kubectl get ns
Expand Down

0 comments on commit 4c8977e

Please sign in to comment.