-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Inherit defaults from Fabric8 kubernetes client defaults #43475
Conversation
🎊 PR Preview 5050908 has been successfully built and deployed to https://quarkus-pr-main-43475-preview.surge.sh/version/main/guides/
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
...internal/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientBuildConfig.java
Outdated
Show resolved
Hide resolved
...internal/src/main/java/io/quarkus/kubernetes/client/runtime/KubernetesClientBuildConfig.java
Outdated
Show resolved
Hide resolved
Fixes quarkusio#43474 Signed-off-by: Chris Laprun <claprun@redhat.com>
f3eb098
to
243b4d3
Compare
I haven't considered backwards compatibility, not sure this is something that needs to be taken into account here. |
Status for workflow
|
Status for workflow
|
I'd vote to backport this PR too since it's addressing a big issue. |
@metacosm @manusa could you prepare a note for the migration guide as to which default values were changed to what? Because while I understand the new defaults are better, people might still rely on the old defaults for some use case: we need to document the change. You can post a comment here and I'll post it to the appropriate migration guide. |
The previous defaults appeared in |
I can try to compile the values from before and after and create a table with the changed ones. |
Hi @gsmet I've compiled all of the configuration options, their old defaults, and the new defaults. Starting from the xxxx version, the default values for the Kubernetes Client extension configuration have changed.
In the past, Quarkus had explicit values for some of the Kubernetes Client configuration options.
This was not ideal since some of these default settings were different to those provided by the client library which led to some confusion.
To address this, we have removed the explicit default values from the Kubernetes Client extension configuration and now rely on the client library defaults.
The following table contains all the configuration option entries, the previous default value, and the new default value (note that many of the values remain unchanged and others don't have a default value):
| Configuration Option | Previous Default Value | New Default Value |
|-------------------------------|------------------------|-------------------|
| `watchReconnectInterval` | `PT1S` | `PT1S` |
| `watchReconnectLimit` | `-1` (no limit) | `-1` (no limit) |
| `connectionTimeout` | `PT10S` | `PT10S` |
| `requestTimeout` | `PT10S` | `PT10S` |
| `requestRetryBackoffLimit` | `0` (no retry) | `10` |
| `requestRetryBackoffInterval` | `PT1S` | `PT0.1S` |
| `trustCerts` | n/a | `false` |
| `apiServerUrl` | n/a | n/a |
| `namespace` | n/a | n/a |
| `caCertFile` | n/a | n/a |
| `caCertData` | n/a | n/a |
| `clientCertFile` | n/a | n/a |
| `clientCertData` | n/a | n/a |
| `clientKeyFile` | n/a | n/a |
| `clientKeyData` | n/a | n/a |
| `clientKeyAlgo` | n/a | `RSA` |
| `clientKeyPassphrase` | n/a | n/a |
| `username` | n/a | n/a |
| `password` | n/a | n/a |
| `token` | n/a | n/a |
| `httpProxy` | n/a | n/a |
| `httpsProxy` | n/a | n/a |
| `proxyUsername` | n/a | n/a |
| `proxyPassword` | n/a | n/a |
| `noProxy` | n/a | n/a | |
Hi @gsmet |
Fixes #43474
Signed-off-by: Chris Laprun claprun@redhat.com