-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix (jkube-kit/common) : Update KubernetesHelper.exportKubernetesClientConfigToFile
to add opinionated Cluster Context
#3175
Conversation
Eclipse JKube CI ReportStarted new GH workflow run for #3175 (2024-06-21T05:05:12Z) ⚙️ JKube E2E Tests (9608323558)
|
cd4766c
to
787e087
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not OK as it's making up settings in production code.
This should be (temporarily) done in a test helper class KubernetesMockServerHelper(?) in the jkube-kit/common/src/test
test-jar.
- Open issue in KubernetesClient project indicating that the settings provided by the Kubernetes Mock Server are incomplete and missing the context and the current context.
- Add the temporary solution (similar implementation as done ATM) in JKube (referencing the upstream issue).
- Once the upstream issue is solved (in the future), remove the now unnecessary code.
787e087
to
105cb3f
Compare
…entConfigToFile` to add opinionated Cluster Context When using KubernetesClient with Kubernetes Mock Server, `kubernetesClient.getConfiguration()` returns a Config object with no context set. Handle this case in KubernetesMockServerUtil to create opinionated Context until this gets fixed in KubernetesMockServer Signed-off-by: Rohan Kumar <[email protected]>
105cb3f
to
ef64498
Compare
Signed-off-by: Marc Nuri <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thx!
Quality Gate passedIssues Measures |
Description
Required by #3142
kubernetesClient.getConfiguration()
returns a Config object with no context set.kubernetesClient.getConfiguration()
does not provide any certificate data. When no certificate data is provided addInsecureSkipTlsVerify
option in kubeconfigHandle this case in KubernetesHelper to create an opinionated Context until this gets fixed in KubernetesMockServer
Type of change
test, version modification, documentation, etc.)
Checklist