From 1a7dc3a33a027b8eb20981a8cf37719e9d465847 Mon Sep 17 00:00:00 2001 From: varshaprasad96 Date: Thu, 7 Jan 2021 14:22:18 -0800 Subject: [PATCH] Deprecate InjectClient --- pkg/runtime/inject/inject.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/runtime/inject/inject.go b/pkg/runtime/inject/inject.go index 9af45b93f6..48cd2f2cd9 100644 --- a/pkg/runtime/inject/inject.go +++ b/pkg/runtime/inject/inject.go @@ -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 }