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:
KubeSphere CI Bot
2024-09-06 11:05:52 +08:00
committed by GitHub
parent b5015ec7b9
commit 447a51f08b
8557 changed files with 546695 additions and 1146174 deletions

View File

@@ -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 {