Skip to content

Commit

Permalink
update: script
Browse files Browse the repository at this point in the history
  • Loading branch information
codekow committed Nov 14, 2024
1 parent b0ab434 commit f2f83a7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/library/k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ k8s_api_start_proxy(){
sleep 3
}

k8s_api_stop_proxy(){
echo "k8s api proxy: stopping..."
kill "${API_PROXY_PID}"
}

# do core resources first, which are at a separate api location
k8s_api_dump_core(){
SERVER=${1:-http://localhost:8001}
Expand All @@ -148,9 +153,7 @@ k8s_api_dump_resources(){
k8s_api_start_proxy
k8s_api_dump_core
k8s_api_dump_noncore

echo "k8s api proxy: stopping..."
kill "${API_PROXY_PID}"
k8s_api_stop_proxy
}

k8s_delete_extended_resource_on_all_nodes(){
Expand Down

0 comments on commit f2f83a7

Please sign in to comment.