mirror of
https://github.com/kubernetes/sample-controller.git
synced 2026-07-15 00:00:09 +08:00
The underlying implementation has both. Exposing that in the result of Discovery() makes it easier for consumers to call the WithContext methods because they don't need to wrap with ToDiscoveryInterfaceWithContext(). This is a breaking Go API change because tests which implement the interface have to be updated. Kubernetes-commit: d8f70b87cec6888420e778bca1ea8022a6617140