From 222e2c5ef897f4d47831b8d822cab09c000037c2 Mon Sep 17 00:00:00 2001 From: Katrina Verey Date: Wed, 10 Mar 2021 12:21:25 -0800 Subject: [PATCH] Extract DefaultChunkSize constant --- staging/src/k8s.io/kubectl/pkg/cmd/get/get.go | 2 +- staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go b/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go index 64dfe2a7fb0..7f2d9a62561 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/get/get.go @@ -145,7 +145,7 @@ func NewGetOptions(parent string, streams genericclioptions.IOStreams) *GetOptio CmdParent: parent, IOStreams: streams, - ChunkSize: 500, + ChunkSize: cmdutil.DefaultChunkSize, ServerPrint: true, } } diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go b/staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go index 8f74d66b8a6..8fadbf83439 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/util/helpers.go @@ -50,6 +50,7 @@ import ( const ( ApplyAnnotationsFlag = "save-config" DefaultErrorExitCode = 1 + DefaultChunkSize = 500 ) type debugError interface {