Skip to content

Commit

Permalink
workaround kind regression: kubeconfig with node IP
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienjt committed Jun 24, 2020
1 parent f97699b commit bf7ddfb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/e2e/kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ kind_setup() {
if ! kind get clusters | grep $CLUSTER; then
kind create cluster --name $CLUSTER --wait 5m
fi
kind get kubeconfig --name $CLUSTER --internal >kubeconfig-$CLUSTER
NODE_IP=$(docker inspect "${CLUSTER}-control-plane" --format "{{ .NetworkSettings.Networks.kind.IPAddress }}")
kind get kubeconfig --name $CLUSTER --internal | \
sed "s/${CLUSTER}-control-plane/${NODE_IP}/g" >kubeconfig-$CLUSTER
k $i apply -f test/e2e/must-run-as-non-root.yaml
}

Expand Down

0 comments on commit bf7ddfb

Please sign in to comment.