diff --git a/examples/eks/v1beta1/testhooks/check-clusterauth.sh b/examples/eks/v1beta1/testhooks/check-clusterauth.sh index 65f803e8b9..9ab6815d45 100755 --- a/examples/eks/v1beta1/testhooks/check-clusterauth.sh +++ b/examples/eks/v1beta1/testhooks/check-clusterauth.sh @@ -6,13 +6,13 @@ set -aeuo pipefail # SPDX-License-Identifier: CC0-1.0 echo "obtain kubeconfig from ClusterAuth connection secret" -${KUBECTL} -n upbound-system get secret sample-eks-cluster-conn -o go-template='{{ .data.kubeconfig | base64decode }}' > sampleclusterkube +${KUBECTL} -n upbound-system get secret sample-eks-cluster-conn -o go-template='{{ .data.kubeconfig | base64decode }}' > /tmp/sampleclusterkube echo "checking kubectl version" -${KUBECTL} --kubeconfig ./sampleclusterkube version +${KUBECTL} --kubeconfig /tmp/sampleclusterkube version echo "checking cluster-info" -${KUBECTL} --kubeconfig ./sampleclusterkube cluster-info +${KUBECTL} --kubeconfig /tmp/sampleclusterkube cluster-info echo "listing nodes" -${KUBECTL} --kubeconfig ./sampleclusterkube get nodes +${KUBECTL} --kubeconfig /tmp/sampleclusterkube get nodes echo "listing pods" -${KUBECTL} --kubeconfig ./sampleclusterkube get pods +${KUBECTL} --kubeconfig /tmp/sampleclusterkube get pods