feat: kubesphere 4.0 (#6115)
* feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> * feat: kubesphere 4.0 Signed-off-by: ci-bot <ci-bot@kubesphere.io> --------- Signed-off-by: ci-bot <ci-bot@kubesphere.io> Co-authored-by: ks-ci-bot <ks-ci-bot@example.com> Co-authored-by: joyceliu <joyceliu@yunify.com>
This commit is contained in:
committed by
GitHub
parent
b5015ec7b9
commit
447a51f08b
14
vendor/k8s.io/cli-runtime/pkg/resource/builder.go
generated
vendored
14
vendor/k8s.io/cli-runtime/pkg/resource/builder.go
generated
vendored
@@ -79,6 +79,8 @@ type Builder struct {
|
||||
stdinInUse bool
|
||||
dir bool
|
||||
|
||||
visitorConcurrency int
|
||||
|
||||
labelSelector *string
|
||||
fieldSelector *string
|
||||
selectAll bool
|
||||
@@ -233,6 +235,13 @@ func (b *Builder) AddError(err error) *Builder {
|
||||
return b
|
||||
}
|
||||
|
||||
// VisitorConcurrency sets the number of concurrent visitors to use when
|
||||
// visiting lists.
|
||||
func (b *Builder) VisitorConcurrency(concurrency int) *Builder {
|
||||
b.visitorConcurrency = concurrency
|
||||
return b
|
||||
}
|
||||
|
||||
// FilenameParam groups input in two categories: URLs and files (files, directories, STDIN)
|
||||
// If enforceNamespace is false, namespaces in the specs will be allowed to
|
||||
// override the default namespace. If it is true, namespaces that don't match
|
||||
@@ -1124,7 +1133,10 @@ func (b *Builder) visitByPaths() *Result {
|
||||
if b.continueOnError {
|
||||
visitors = EagerVisitorList(b.paths)
|
||||
} else {
|
||||
visitors = VisitorList(b.paths)
|
||||
visitors = ConcurrentVisitorList{
|
||||
visitors: b.paths,
|
||||
concurrency: b.visitorConcurrency,
|
||||
}
|
||||
}
|
||||
|
||||
if b.flatten {
|
||||
|
||||
Reference in New Issue
Block a user