Skip to content

Commit

Permalink
Kubeconfig is null!
Browse files Browse the repository at this point in the history
  • Loading branch information
thekoma committed Nov 20, 2024
1 parent ed313e2 commit 6d25450
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/generate_package_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ find /usr/local/bin -type f -executable | while read -r binary_path; do
version=$(termshark -v 2>&1)
echo "${binary}|${version}|installed" >> "${OUTPUT_DIR}/binaries.txt"
;;
"kubectl")
export KUBECONFIG=/dev/null
version=$(kubectl version | grep "Client Version:" | cut -d: -f2 | tr -d ' ')
echo "${binary}|${version}|installed" >> "${OUTPUT_DIR}/binaries.txt"
;;
*)
echo "${binary}|installed|installed" >> "${OUTPUT_DIR}/binaries.txt"
;;
Expand Down

0 comments on commit 6d25450

Please sign in to comment.