From 92e42922422391038bd251bbeb3f98a5b144a67e Mon Sep 17 00:00:00 2001 From: Scott Hussey Date: Tue, 30 Jul 2019 12:44:58 -0500 Subject: [PATCH] (fix) make debug-report compat w/ kubectl Recent change to move kubectl out of a container requires that the user environment now directly be configured with KUBECONFIG. Ensure it is available for debug-report. Change-Id: Ia4dae81bc9733c4a9ae442c836626a117fc2f504 --- promenade/templates/roles/common/usr/local/bin/debug-report.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/promenade/templates/roles/common/usr/local/bin/debug-report.sh b/promenade/templates/roles/common/usr/local/bin/debug-report.sh index 69e349fe..cc6e4857 100755 --- a/promenade/templates/roles/common/usr/local/bin/debug-report.sh +++ b/promenade/templates/roles/common/usr/local/bin/debug-report.sh @@ -8,6 +8,7 @@ NAMESPACE_PATTERN=${NAMESPACE_PATTERN:-'.*'} # NOTE(mark-burnett): This should add calicoctl to the path. export PATH=${PATH}:/opt/cni/bin +export KUBECONFIG=${KUBECONFIG:-"/etc/kubernetes/admin/kubeconfig.yaml"} TEMP_DIR=$(mktemp -d -p "$BASETEMP") export TEMP_DIR