(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
This commit is contained in:
Scott Hussey 2019-07-30 12:44:58 -05:00
parent 3155a3824d
commit 92e4292242
1 changed files with 1 additions and 0 deletions

View File

@ -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