Skip to content

Commit

Permalink
fix kubeconfig 3
Browse files Browse the repository at this point in the history
Signed-off-by: Neha Lohia <[email protected]>
  • Loading branch information
nehaLohia27 committed Dec 10, 2021
1 parent ab24033 commit 34b9852
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hack/test_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,8 @@ function create_cluster {
- role: worker
- role: worker
EOF
kind get kubeconfig --internal --name ${E2E_CLUSTER_NAME} > "${E2E_ARTIFACTS}/kubeconfig_internal.conf"
kind get kubeconfig --internal --name ${E2E_CLUSTER_NAME} > "${E2E_ARTIFACTS}/kubeconfig.conf"
kind get kubeconfig --name ${E2E_CLUSTER_NAME} > "${E2E_ARTIFACTS}/kubeconfig_tests.conf"
# export KUBECONFIG="${E2E_ARTIFACTS}/kubeconfig_internal.conf"
echo "cluster is up"
echo -e "Let's move on.\n"
}
Expand Down Expand Up @@ -229,7 +228,7 @@ function install_kpng {
# TODO this should be part of the template
kubectl -n kube-system create sa kpng
kubectl create clusterrolebinding kpng --clusterrole=system:node-proxier --serviceaccount=kube-system:kpng
kubectl -n kube-system create cm kpng --from-file "${E2E_ARTIFACTS}/kubeconfig_internal.conf"
kubectl -n kube-system create cm kpng --from-file "${E2E_ARTIFACTS}/kubeconfig.conf"
echo "Applying template"
export IMAGE=kpng:test
export PULL=IfNotPresent
Expand Down

0 comments on commit 34b9852

Please sign in to comment.