* refactor(kubernetes): streamline provider configuration and in-cluster detection
- Removed IsInCluster method from Manager and created function scoped to the runtime environment.
As a method, the implementation was not correct.
Removed GetAPIServerHost method from Manager which is no used.
- **Temporarily** added an `inCluster` field to the Manager struct but should be eventually removed since it doesn't really make sense to hava a Manager in-cluster or out-of-cluster in the multi-cluster scenario.
- Provider resolution (resolveStrategy) is now clearer, added complete coverage for all scenarios.
- Added additional coverage for provider and manager.
Signed-off-by: Marc Nuri <marc@marcnuri.com>
* refactor(kubernetes): update NewManager to accept kubeconfig context and simplify manager creation
- Removes Provider.newForContext(context string) method.
Signed-off-by: Marc Nuri <marc@marcnuri.com>
---------
Signed-off-by: Marc Nuri <marc@marcnuri.com>
* chore(docs): update tools in README.md
Previous update wasn't made automatically.
Signed-off-by: Marc Nuri <marc@marcnuri.com>
* chore(security): try to fix snyk security issues
Even after the fix, Snyk seems to be reporting false positives.
Signed-off-by: Marc Nuri <marc@marcnuri.com>
---------
Signed-off-by: Marc Nuri <marc@marcnuri.com>
- Refactor tests to use testify (more clarity+composability for complex tests)
- Tests for default toolsets
- Tests for configured, granular toolsets
Signed-off-by: Marc Nuri <marc@marcnuri.com>
Users can now enable or disable different toolsets either by providing
a command-line flag or by setting the toolsets array field in the TOML
configuration.
Downstream Kubernetes API developers can declare toolsets for their
APIs by creating a new nested package in pkg/toolsets and registering
it in pkg/mcp/modules.go
Signed-off-by: Marc Nuri <marc@marcnuri.com>