Skip to content

Commit

Permalink
Update source link in docs for field selectors
Browse files Browse the repository at this point in the history
Apparently the link format has changed a little bit and needs to be
fully percent encoded.

Signed-off-by: Tom Wieczorek <[email protected]>
(cherry picked from commit 0c54d39)
(cherry picked from commit 237049d)
  • Loading branch information
twz123 authored and github-actions[bot] committed Oct 23, 2023
1 parent 9bb107f commit b742231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubernetes/watch/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (w *Watcher[T]) WithObjectName(name string) *Watcher[T] {
// [Kubernetes codebase].
//
// [concept]: https://kubernetes.io/docs/concepts/overview/working-with-objects/field-selectors/
// [Kubernetes codebase]: https://sourcegraph.com/search?q=lang:go+AddFieldLabelConversionFunc(...)+repo:^github\.com/kubernetes/kubernetes%24+-file:_test\.go%24+select:content&patternType=structural
// [Kubernetes codebase]: https://sourcegraph.com/search?q=lang:go+AddFieldLabelConversionFunc%28...%29+repo:%5Egithub%5C.com/kubernetes/kubernetes%24+-file:_test%5C.go%24+select:content&patternType=structural
func (w *Watcher[T]) WithFieldSelector(selector fields.Selector) *Watcher[T] {
w.fieldSelector = selector.String()
return w
Expand Down

0 comments on commit b742231

Please sign in to comment.