Skip to content

Commit 69e51f7

Browse files
author
Mengqi Yu
committed
🏃 not use deprecated method in builder example
1 parent 0208f43 commit 69e51f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/builder/example_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ func ExampleBuilder() {
4848
os.Exit(1)
4949
}
5050

51-
_, err = builder.
51+
err = builder.
5252
ControllerManagedBy(mgr). // Create the ControllerManagedBy
5353
For(&appsv1.ReplicaSet{}). // ReplicaSet is the Application API
5454
Owns(&corev1.Pod{}). // ReplicaSet owns Pods created by it
55-
Build(&ReplicaSetReconciler{})
55+
Complete(&ReplicaSetReconciler{})
5656
if err != nil {
5757
log.Error(err, "could not create controller")
5858
os.Exit(1)

0 commit comments

Comments
 (0)