mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
Merge pull request #64504 from wgliang/master.fix-format
Automatic merge from submit-queue (batch tested with PRs 64688, 64451, 64504, 64506, 56358). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Errorf format %q has arg b.labelSelector of wrong type *string **What this PR does / why we need it**: /kind bug Errorf format %q has arg b.labelSelector of wrong type *string **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
2fa32e717b
@ -1043,7 +1043,7 @@ func (b *Builder) visitByPaths() *Result {
|
||||
if b.labelSelector != nil {
|
||||
selector, err := labels.Parse(*b.labelSelector)
|
||||
if err != nil {
|
||||
return result.withError(fmt.Errorf("the provided selector %q is not valid: %v", b.labelSelector, err))
|
||||
return result.withError(fmt.Errorf("the provided selector %q is not valid: %v", *b.labelSelector, err))
|
||||
}
|
||||
visitors = NewFilteredVisitor(visitors, FilterByLabelSelector(selector))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user