kubernetes-client v6.2.0 Release Notes

Release Date: 2022-10-20 // over 1 year ago
  • ๐Ÿ› Bugs

    • ๐Ÿ›  Fix #3733: The authentication command from the .kube/config won't be discarded if no arguments are specified
    • ๐Ÿ›  Fix #4312: fix timestamp can't be deserialized for IstioCondition
    • ๐Ÿ›  Fix #4369: Informers will retry with a backoff on list/watch failure as they did in 5.12 and prior.
    • ๐Ÿ›  Fix #4350: SchemaSwap annotation is now repeatable and is applied multiple times if classes are used more than once in the class hierarchy.
    • ๐Ÿ›  Fix #3733: The authentication command from the .kube/config won't be discarded if no arguments are specified
    • ๐Ÿ›  Fix #4441: corrected patch base handling for the patch methods available from a Resource - resource(item).patch() will be evaluated as resource(latest).patch(item). Also undeprecated patch(item), which is consistent with leaving patch(context, item) undeprecated as well. For consistency with the other operations (such as edit), patch(item) will use the context item as the base when available, or the server side item when not. This means that patch(item) is only the same as resource(item).patch() when the patch(item) is called when the context item is missing or is the same as the latest.
    • ๐Ÿ›  Fix #4442: TokenRefreshInterceptor doesn't overwrite existing OAuth token with empty string
    • ๐Ÿ›  Fix #4350: SchemaSwap annotation is now repeatable and is applied multiple times if classes are used more than once in the class hierarchy.
    • ๐Ÿ›  Fix #4459: Fixed OSGi startup exceptions while using KubernetesClient/OpenShiftClient
    • ๐Ÿ›  Fix #4460: removing split packages. Converting Default clients into adapters rather than real instances.
    • ๐Ÿ›  Fix #4473: Fix regression in backoff interval introduced in #4365
    • ๐Ÿ›  Fix #4478: Removing the resourceVersion bump with null status
    • ๐Ÿ›  Fix #4482: Fixing blocking behavior of okhttp log watch
    • ๐Ÿ›  Fix #4487: Schema for multimaps is now generated correctly
    • ๐Ÿ›  Fix #4496: Removing watch handling of lists

    ๐Ÿ‘Œ Improvements

    • ๐Ÿ›  Fix #4471: Adding KubernetesClientBuilder.withHttpClientBuilderConsumer to further customize the HttpClient for any implementation.
    • ๐Ÿ›  Fix #4348: Introduce specific annotations for the generators
    • ๐Ÿ›  Fix #4441: refactoring TokenRefreshInterceptor
    • ๐Ÿ›  Fix #4365: The Watch retry logic will handle more cases, as well as perform an exceptional close for events that are not properly handled. Informers can directly provide those exceptional outcomes via the SharedIndexInformer.stopped CompletableFuture.
    • ๐Ÿ›  Fix #4396: Provide more error context when @Group/@Version annotations are missing
    • ๐Ÿ›  Fix #4384: The Java generator now supports the generation of specific annotations (min, max, pattern, etc.), as defined by #4348
    • ๐Ÿ›  Fix #4408: Allowing informers started via the start() method to have configurable exception / retry handling.
    • ๐Ÿ›  Fix #3864: Change ManagedOpenShiftClient OSGi ConfigurationPolicy to REQUIRE
    • ๐Ÿ›  Fix #4470: Added timestamps support for deployment logs and other resources.
    • ๐Ÿ›  Fix #4476: [crd-generator] Support custom Annotations and Labels to be emitted in the CRD

    โฌ†๏ธ Dependency Upgrade

    • ๐Ÿ›  Fix #4243: Update Tekton pipeline model to v0.39.0
    • ๐Ÿ›  Fix #4243: Update Tekton triggers model to v0.20.2
    • ๐Ÿ›  Fix #4383: bump snakeyaml from 1.30 to 1.31
    • ๐Ÿ›  Fix #4347: Update Kubernetes Model to v1.25.0
    • ๐Ÿ›  Fix #4413: Update sundrio to 0.93.1

    ๐Ÿ†• New Features

    • ๐Ÿ›  Fix #4398: add annotation @PreserveUnknownFields for marking generated field have x-kubernetes-preserve-unknown-fields: true defined
    • ๐Ÿ›  Fix #4351: add javax.annotation.processing.Generated to classes generated with the java-generator

    Note: Breaking changes in the API

    • ๐Ÿ›  Fix #4350: SchemaSwap's fieldName parameter now expects a field name only, not a method or a constructor.
    • ๐Ÿšš Module io.fabric8:tekton-model-triggers which contained Tekton triggers v1alpha1 model has been removed. We have introduced separate modules io.fabric8:tekton-model-v1alpha1 and io.fabric8:tekton-model-v1beta1 for Tekton triggers v1alpha1 and v1beta1 apigroups respectively. Users who are using io.fabric8:tekton-client dependency directly should be unaffected by this change.
    • ๐Ÿ›  Fix #3864: Now it's compulsory to provide etc/io.fabric8.openshift.client.cfg file in order to load ManagedOpenShiftClient in OSGi environment.
    • ๐Ÿ›  Fix #3924: Extension Mock modules have been removed
    • ๐Ÿ›  Fix #4384: javax.validation.* annotations are no longer added by the Java generator.
    • ๐Ÿ›  Fix #3906: removed BaseKubernetesList, use KubernetesList instead
    • ๐Ÿ›  Fix #4408: deprecated SharedInformerFactory.addSharedInformerEventListener, instead use the SharedIndexInformer.stopped method. Also the signature of SharedIndexInformer.start was changed to a CompletionStage rather than a CompletableFuture.

Previous changes from v6.1.1

  • ๐Ÿ› Bugs

    ๐Ÿ›  fix #4373: NO_PROXY should allow URIs with hyphens ("circleci-internal-outer-build-agent")