Skip to content

Commit a81c535

Browse files
committed
address vet errors introduced by lint errors
1 parent 7f88891 commit a81c535

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/controller/eventhandler/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func ExampleEnqueueMappedHandler() {
7676
}
7777

7878
// This example implements eventhandler.EnqueueHandler.
79-
func ExampleEventHandlerFuncs() {
79+
func ExampleFuncs() {
8080
// controller is a controller.controller
8181
c.Watch(
8282
&source.KindSource{Type: &corev1.Pod{}},

pkg/controller/predicate/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
var p predicate.Predicate
2525

2626
// This example creates a new Predicate to drop Update Events where the Generation has not changed.
27-
func ExamplePredicateFuncs() {
27+
func ExampleFuncs() {
2828
p = predicate.Funcs{
2929
UpdateFunc: func(e event.UpdateEvent) bool {
3030
return e.MetaOld.GetGeneration() != e.MetaNew.GetGeneration()

pkg/controller/reconcile/example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
)
2525

2626
// This example implements a simple no-op reconcile function that prints the object to be Reconciled.
27-
func ExampleReconcileFunc() {
27+
func ExampleFunc() {
2828
r := reconcile.Func(func(o reconcile.Request) (reconcile.Result, error) {
2929
// Create your business logic to create, update, delete objects here.
3030
fmt.Printf("Name: %s, Namespace: %s", o.Name, o.Namespace)

0 commit comments

Comments
 (0)