Skip to content

Commit 1a7dc3a

Browse files
Deprecate InjectClient
1 parent 6bcef8a commit 1a7dc3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/runtime/inject/inject.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ func ConfigInto(config *rest.Config, i interface{}) (bool, error) {
7272

7373
// Client is used by the ControllerManager to inject client into Sources, EventHandlers, Predicates, and
7474
// Reconciles
75+
// Deprecated: pass a client.Client to the manager directly.
76+
// The client to be used by the ControllerManager can directly be passed as cluster Options.
7577
type Client interface {
7678
InjectClient(client.Client) error
7779
}

0 commit comments

Comments
 (0)