You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(kubernetes): Provider implementations deal with Manager instantiations (containers#379)
* refactor(kubernetes): Provider implementations deal with Manager instantiations
Removed `*Manager` parameter from `ProviderFactory`.
Provider implementations should deal with the appropriate (base) Manager instantiation
if needed at all.
Manager creation function divided into two explicit functions:
- NewKubeconfigManager: to be used when using KubeConfig files
- NewInClusterManager: to be used inside a cluster
New functions contain validations to ensure they are used in the expected places.
This ensures that the right manager is used by the provider implementation.
Fake kubeconfig for in-cluster Manager is now generated when the Manager is created.
This kubeconfig has the "magic" strings (inClusterKubeConfigDefaultContext) that are
used by the MCP server and tool mutators.
Signed-off-by: Marc Nuri <[email protected]>
* review: Provider implementation refactor
Signed-off-by: Marc Nuri <[email protected]>
---------
Signed-off-by: Marc Nuri <[email protected]>
0 commit comments