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
Is your enhancement related to a problem? Please describe
At the moment KubernetesMockServer doesn't support providing opinionated responses for Kubernetes Aggregated Discovery APIs . This causes problems when we try to use KubernetesMockServer with clients other than Fabric8 KubernetesClient like kubectl /helm etc. It logs this warning with used with helm CLI
OpenJDK 64-Bit Server VM warning: Sharing is only supported for boot loader classes because bootstrap classpath has been appended
Jun 18, 2024 6:09:27 PM okhttp3.mockwebserver.MockWebServer$Http2SocketHandler onStream
INFO: MockWebServer[42981] received request: GET /version HTTP/1.1 and responded: HTTP/1.1 200 OK protocol is h2
Jun 18, 2024 6:09:27 PM okhttp3.mockwebserver.MockWebServer$Http2SocketHandler onStream
INFO: MockWebServer[42981] received request: GET /api/v1/namespaces/test/secrets?labelSelector=name%3Dtest-project%2Cowner%3Dhelm HTTP/1.1 and responded: HTTP/1.1 200 OK protocol is h2
Jun 18, 2024 6:09:27 PM okhttp3.mockwebserver.MockWebServer$Http2SocketHandler onStream
INFO: MockWebServer[42981] received request: GET /version?timeout=32s HTTP/1.1 and responded: HTTP/1.1 200 OK protocol is h2
Jun 18, 2024 6:09:27 PM okhttp3.mockwebserver.MockWebServer$Http2SocketHandler onStream
INFO: MockWebServer[42981] received request: GET /api?timeout=32s HTTP/1.1 and responded: HTTP/1.1 200 OK protocol is h2
Jun 18, 2024 6:09:27 PM okhttp3.mockwebserver.MockWebServer$Http2SocketHandler onStream
INFO: MockWebServer[42981] received request: GET /apis?timeout=32s HTTP/1.1 and responded: HTTP/1.1 200 OK protocol is h2
Jun 18, 2024 6:09:28 PM okhttp3.mockwebserver.MockWebServer$Http2SocketHandler onStream
INFO: MockWebServer[42981] received request: GET /api?timeout=32s HTTP/1.1 and responded: HTTP/1.1 200 OK protocol is h2
Jun 18, 2024 6:09:28 PM okhttp3.mockwebserver.MockWebServer$Http2SocketHandler onStream
INFO: MockWebServer[42981] received request: GET /apis?timeout=32s HTTP/1.1 and responded: HTTP/1.1 200 OK protocol is h2
Jun 18, 2024 6:09:28 PM okhttp3.mockwebserver.MockWebServer$2 acceptConnections
INFO: MockWebServer[42981] done accepting connections: Socket closed
Describe the solution you'd like
Fabric8 KubernetesMockServer should provide some opinionated defaults for these endpoints:
/api
/apis/
/apis/{apiGroup}/{apiVersion}
Describe alternatives you've considered
For now I'm using KubernetesMockServer in expectations mode by providing these expectations:
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!
Is your enhancement related to a problem? Please describe
At the moment KubernetesMockServer doesn't support providing opinionated responses for Kubernetes Aggregated Discovery APIs . This causes problems when we try to use KubernetesMockServer with clients other than Fabric8 KubernetesClient like
kubectl
/helm
etc. It logs this warning with used withhelm
CLIDescribe the solution you'd like
Fabric8 KubernetesMockServer should provide some opinionated defaults for these endpoints:
/api
/apis/
/apis/{apiGroup}/{apiVersion}
Describe alternatives you've considered
For now I'm using KubernetesMockServer in expectations mode by providing these expectations:
Additional context
No response
The text was updated successfully, but these errors were encountered: