mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Make ContinueOnError actually work
In resource.Builder ContinueOnError() should actually do so. Reorganized util.CheckErr() to make it display bulk errors more effectively and be more reusable. Clarified that CheckErr is not specific to kubectl in Godoc. Changed the "Error: " prefix to "error: " to more closely match Unix conventions.
This commit is contained in:
@@ -614,6 +614,9 @@ func (b *Builder) Do() *Result {
|
||||
helpers = append(helpers, RetrieveLazy)
|
||||
}
|
||||
r.visitor = NewDecoratedVisitor(r.visitor, helpers...)
|
||||
if b.continueOnError {
|
||||
r.visitor = ContinueOnErrorVisitor{r.visitor}
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user