Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Make sure /root/.config really exists (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
kipit authored and msiegenthaler committed May 28, 2019
1 parent 9bd8237 commit 4b3e15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ setup_kubernetes() {
payload=$1
source=$2

mkdir -p /root/.kube
kubeconfig_path=$(jq -r '.params.kubeconfig_path // ""' < $payload)
absolute_kubeconfig_path="${source}/${kubeconfig_path}"
if [ -f "$absolute_kubeconfig_path" ]; then
mkdir -p /root/.kube
cp "$absolute_kubeconfig_path" "/root/.kube/config"
else
# Setup kubectl
Expand Down

0 comments on commit 4b3e15f

Please sign in to comment.