mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Add --chunk-size=0 to disable pagination when listing nodes.
Otherwise the default of 500 is used which started breaking large cluster tests, e.g. https://prow.k8s.io/view/gcs/kubernetes-jenkins/logs/ci-kubernetes-e2e-gce-scale-performance/1125672232488538115
This commit is contained in:
parent
014a2d2552
commit
cb223dab04
@ -104,7 +104,7 @@ while true; do
|
||||
# which are important for line counting.
|
||||
# Use trick from https://unix.stackexchange.com/a/383411 to avoid
|
||||
# newline truncation.
|
||||
node=$(kubectl_retry get nodes --no-headers; ret=$?; echo .; exit "$ret") && res="$?" || res="$?"
|
||||
node=$(kubectl_retry get nodes --chunk-size=0 --no-headers; ret=$?; echo .; exit "$ret") && res="$?" || res="$?"
|
||||
node="${node%.}"
|
||||
if [ "${res}" -ne "0" ]; then
|
||||
if [[ "${attempt}" -gt "${last_run:-$MAX_ATTEMPTS}" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user