From 6142e96d6cf6a325b52e98505abe04f28df1bfcd Mon Sep 17 00:00:00 2001 From: Erhan Cagirici Date: Thu, 4 Apr 2024 15:27:32 +0300 Subject: [PATCH] write kubeconfig to /tmp in clusterauth post-assert script Signed-off-by: Erhan Cagirici (cherry picked from commit 7a996b0277f64f5079ba214af5cefdb9831ea8cd) --- examples/eks/v1beta1/testhooks/check-clusterauth.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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