Skip to content

Commit

Permalink
Deprecate InjectClient
Browse files Browse the repository at this point in the history
  • Loading branch information
varshaprasad96 committed Jan 7, 2021
1 parent 6bcef8a commit 1a7dc3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/runtime/inject/inject.go
Expand Up @@ -72,6 +72,8 @@ func ConfigInto(config *rest.Config, i interface{}) (bool, error) {

// Client is used by the ControllerManager to inject client into Sources, EventHandlers, Predicates, and
// Reconciles
// Deprecated: pass a client.Client to the manager directly.
// The client to be used by the ControllerManager can directly be passed as cluster Options.
type Client interface {
InjectClient(client.Client) error
}
Expand Down

0 comments on commit 1a7dc3a

Please sign in to comment.