Skip to content

Releases: fabric8io/kubernetes-client

5.12.3 (2022-07-27)

27 Jul 13:39
Compare
Choose a tag to compare

Bugs

  • Fix #3969: relist will not trigger sync events
  • Fix #4049: properly populate exception metadata with resource information if available
  • Fix #4222: backport of #4082 - to not process events until the cache is complete
  • Fix #4246: KubernetesClientException is swallowed in LeaderElector
  • Fix #4295: Configure SnakeYaml to ignore converting timestamps to Date objects

6.0.0 (2022-07-13)

13 Jul 07:58
Compare
Choose a tag to compare

Bugs

  • Fix #2811: Approve/Reject CSR not supported in v1beta1 CertificateSigningRequest API
  • Fix #2860: ensure that lockexceptions won't inhibit notification
  • Fix #3300: addressed race connection with watch reconnects
  • Fix #3745: the client will throw better exceptions when a namespace is not discernible for an operation
  • Fix #3832 #1883: simplifying the isHttpsAvailable check
  • Fix #3990: Throw exception when HasMetadata is used in resources(...) API
  • Fix #4081: moving Versionable.withResourceVersion to a method on WatchAndWaitable and removing Waitable from the return type
  • Fix #4106: removed listing from projectrequests
  • Fix #4140: changed StatefulSet rolling pause / resume to unsupported. Also relying on default rolling logic to Deployments and StatefulSets
  • Fix #4139: status changes don't increment metadata.generation field
  • Fix #4149: port forwarding can accept both blocking and non-blocking channels
  • Fix #4171: allowing any object in clone
  • Fix #4216: Update metadata when replaceStatus() is called
  • Fix #4217: patchStatus doesn't increment metadata.generation field in Kubernetes Mock Server (CRUD)
  • Fix #4234: corrected the skip method for base64 inputstream

Improvements

  • Fix #1285: removed references to manually calling registerCustomKind
  • Fix #2207: added LeaderElector.start to provide a CompletableFuture for easy cancellation
  • Fix #3227 : Move config.openshift.io apiGroup resources out of openshift-model/
  • Fix #3334: adding basic support for server side apply. Use patch(PatchContext.of(PatchType.SERVER_SIDE_APPLY), service), or new PatchContext.Builder()withPatchType(PatchType.SERVER_SIDE_APPLY).withForce(true).build() to override conflicts
  • Fix #3486: using a common jsonschema2pojo annotator - see the migration guide for possible changes to extension models
  • Fix #3625: adds default maps to mostly prevent the need for null checks on things like annotations and labels
  • Fix #3758: VersionInfo in KubernetesMockServer can be overridden
  • Fix #3806: Remove setIntVal, setStrVal, setKind setters from IntOrString class to avoid invalid combinations
  • Fix #3852: Deserializing kamelets fails with UnrecognizedPropertyException
  • Fix #3889: remove piped stream for file download
  • Fix #3968: SharedIndexInformer.initialState can be used to set the store state before the informer starts
    SharedIndexInformer allows for the addition and removal of indexes even after starting, and you can remove the default namespace index if you wish.
    And Store.getKey can be used rather than directly referencing static Cache functions.
  • Fix #3969: relist will not trigger sync events
  • Fix #4006: Remove outdated shared test classes in kubernetes-client/ and openshift-client/ modules
  • Fix #4065: Client.getAPIResources("v1") can be used to obtain the core/legacy resources
  • Fix #4082: improving informOnCondition to test the initial list instead of individual add events
  • Fix #4093: adding a possibility to get a log as an InputStream from the Loggable resources
  • Fix #4142: Added patch() and patch(PatchContext) methods for use with resource and load
  • Fix #4146: ManagedKubernetesClient and ManagedOpenShiftClient as delayed OSGi services

Dependency Upgrade

  • Fix #3788: Point CamelK Extension model to latest released version v1.8.0
  • Fix #3813: Handle exit code status messages with pod uploads
  • Fix #3947: Point CamelK Extension model to latest released version v1.8.2
  • Fix #4031: Update Kubernetes Model to v1.24.0
  • Fix #4100: Update Tekton Pipeline Model to v0.35.0

New Features

  • Fix #3407 #3973: Added resource(item) to directly associate a resource with the DSL. It can be used as an alternative to Loadable.load when you already have the item
    There is also client.resourceList(...).resources() and client.configMaps().resources() - that will provide a Resource stream.
    This allows you to implement composite operations easily with lambda: client.secrets().resources().forEach(r -> r.delete());
  • Fix #3472 #3587: Allowing for customization of the Informer store/cache key function and how state is stored. See BasicItemStore and ReducedStateItemStore and the SharedIndexInformer.itemStore function
  • Fix #3855: Created a new kubernetes-httpclient-jdk module with an HttpClient implementation based on the Java HttpClient
  • Fix #3922: added Client.supports and Client.hasApiGroup methods
  • Fix #3966: KubernetesMockServer has new methods - unsupported and reset - to control what apis are unsupported and to reset its state
  • Fix #4112: Added TtyExecErrorable.terminateOnError to produce an exceptional outcome to the exitCode when a message is seen on stdErr
  • Fix #3854: Camel-K: Missing method for manipulating KameletBindings
  • Fix #4117: Created new kubernetes-junit-jupiter module, adds a JUnit5 extension for Kubernetes
  • Fix #4180: Created a new kubernetes-httpclient-jetty module with an HttpClient implementation based on Eclipse Jetty

Note: Breaking changes in the API

Please see the migration guide

6.0.0-RC1 (2022-06-13)

14 Jun 04:34
Compare
Choose a tag to compare

Bugs

  • Fix #2860: ensure that lockexceptions won't inhibit notification
  • Fix #3300: addressed race connection with watch reconnects
  • Fix #3745: the client will throw better exceptions when a namespace is not discernible for an operation
  • Fix #3832 #1883: simplifying the isHttpsAvailable check
  • Fix #3990: Throw exception when HasMetadata is used in resources(...) API
  • Fix #4081: moving Versionable.withResourceVersion to a method on WatchAndWaitable and removing Waitable from the return type
  • Fix #4106: removed listing from projectrequests
  • Fix #4140: changed StatefulSet rolling pause / resume to unsupported. Also relying on default rolling logic to Deployments and StatefulSets
  • Fix #4139: status changes don't increment metadata.generation field
  • Fix #4149: port forwarding can accept both blocking and non-blocking channels
  • Fix #4171: allowing any object in clone

Improvements

  • Fix #1285: removed references to manually calling registerCustomKind
  • Fix #2207: added LeaderElector.start to provide a CompletableFuture for easy cancellation
  • Fix #3334: adding basic support for server side apply. Use patch(PatchContext.of(PatchType.SERVER_SIDE_APPLY), service), or new PatchContext.Builder()withPatchType(PatchType.SERVER_SIDE_APPLY).withForce(true).build() to override conflicts
  • Fix #3486: using a common jsonschema2pojo annotator - see the migration guide for possible changes to extension models
  • Fix #3625: adds default maps to mostly prevent the need for null checks on things like annotations and labels
  • Fix #3758: VersionInfo in KubernetesMockServer can be overridden
  • Fix #3806: Remove setIntVal, setStrVal, setKind setters from IntOrString class to avoid invalid combinations
  • Fix #3852: Deserializing kamelets fails with UnrecognizedPropertyException
  • Fix #3889: remove piped stream for file download
  • Fix #3968: SharedIndexInformer.initialState can be used to set the store state before the informer starts
    SharedIndexInformer allows for the addition and removal of indexes even after starting, and you can remove the default namespace index if you wish.
    And Store.getKey can be used rather than directly referencing static Cache functions.
  • Fix #3969: relist will not trigger sync events
  • Fix #4065: Client.getAPIResources("v1") can be used to obtain the core/legacy resources
  • Fix #4082: improving informOnCondition to test the initial list instead of individual add events
  • Fix #4093: adding a possibility to get a log as an InputStream from the Loggable resources
  • Fix #4142: Added patch() and patch(PatchContext) methods for use with resource and load
  • Fix #4146: ManagedKubernetesClient and ManagedOpenShiftClient as delayed OSGi services

Dependency Upgrade

  • Fix #3788: Point CamelK Extension model to latest released version v1.8.0
  • Fix #3813: Handle exit code status messages with pod uploads
  • Fix #3947: Point CamelK Extension model to latest released version v1.8.2
  • Fix #4031: Update Kubernetes Model to v1.24.0
  • Fix #4100: Update Tekton Pipeline Model to v0.35.0

New Features

  • Fix #3407 #3973: Added resource(item) to directly associate a resource with the DSL. It can be used as an alternative to Loadable.load when you already have the item
    There is also client.resourceList(...).resources() and client.configMaps().resources() - that will provide a Resource stream.
    This allows you to implement composite operations easily with lambda: client.secrets().resources().forEach(r -> r.delete());
  • Fix #3472 #3587: Allowing for customization of the Informer store/cache key function and how state is stored. See BasicItemStore and ReducedStateItemStore and the SharedIndexInformer.itemStore function
  • Fix #3855: Created a new kubernetes-httpclient-jdk module with an HttpClient implementation based on the Java HttpClient
  • Fix #3922: added Client.supports and Client.hasApiGroup methods
  • Fix #3966: KubernetesMockServer has new methods - unsupported and reset - to control what apis are unsupported and to reset its state
  • Fix #4112: Added TtyExecErrorable.terminateOnError to produce an exceptional outcome to the exitCode when a message is seen on stdErr
  • Fix #3854: Camel-K: Missing method for manipulating KameletBindings
  • Fix #4117: Created new kubernetes-junit-jupiter module, adds a JUnit5 extension for Kubernetes
  • Fix #4180: Created a new kubernetes-httpclient-jetty module with an HttpClient implementation based on Eclipse Jetty

Note: Breaking changes in the API

Please see the migration guide

Full Changelog: v5.12.2...v6.0.0-RC1

5.12.2 (2022-04-06)

06 Apr 16:57
Compare
Choose a tag to compare

Bugs

  • Fix #3582: SSL truststore can be loaded in FIPS enabled environments
  • Fix #3797: Implement SchemaSwap; generate CRD from model not owned
  • Fix #3811: Reintroduce Replaceable interface in NonNamespaceOperation
  • Fix #3818: adding missing throws to launderThrowable
  • Fix #3848: Supports Queue (cluster) API for Volcano extension
  • Fix #3859: refined how a deserialization class is chosen to not confuse types with the same kind
  • Fix #3880: Synchronize access to map in KubernetesCrudDispatcher
  • Fix #3936: Kubernetes Mock Server .metadata.generation field is an integer
  • Fix #3957: Lister onOpen should be called before marking the connection as open
  • Fix #4022: Reintroduce Deletable interface in NonNamespaceOperation

Note:

  • Config#autoConfigure(String context): Has been changed to only trigger the autoConfigure method once. Previously, providing a wrong context argument would not be a problem since an initial context-less autoConfigure would have already been invoked to provide a valid initial Config.

5.12.1 (2022-02-04)

04 Feb 13:59
Compare
Choose a tag to compare

Bugs

  • Fix #3786: Deserialize WatchEvents using the specific object type
  • Fix #3776: VerticalPodAutoscaler cannot load yaml with "controlledResources"
  • Fix #3796: Limit usage of YAML Serializer
  • Fix #3772: edit() should not be allowed as a NonNamespaceOperation
  • Fix #3477: Handle exit code status messages with pod uploads

Note:

  • Config#autoConfigure(String context): Has been changed to only trigger the autoConfigure method once. Previously, providing a wrong context argument would not be a problem since an initial context-less autoConfigure would have already been invoked to provide a valid initial Config.

5.12.0 (2022-01-24)

24 Jan 11:36
Compare
Choose a tag to compare

Bugs

  • Fix #3683: Handle JsonNode fields by adding x-kubernetes-preserve-unknown-fields
  • Fix #3697: addresses response that aren't closed by interceptors that issue new requests
  • Fix #3255: adding basic crud mock resourceVersion support - the field will be set and updated, but not utilized by list/watch queries
  • Fix #3568: Pod file upload fails if the path is /
  • Fix #3588: openshift-server-mock is not listed in dependencyManagement in main pom
  • Fix #3648: Serialization.unmarshal fails to deserialize YAML with single document in presence of document delimiter(---)
  • Fix #3679: output additionalProperties field with correct value type for map-like fields (CRD Generator)
  • Fix #3671: HTTP(s) Proxy port is not defaulted or validated
  • Fix #3712: properly return the full resource name for resources with empty group
  • Fix #3761: Extension Jar packages don't contain the META-INF/jandex.idx index file
  • Fix #3763: A Java Long should generate a field of type integer in the CRD
  • Fix #3769: Fix for ClassCastException from SchemaFrom
  • Fix #3756 prevent modifications by standard operations to user objects

Improvements

  • Fix #3674: allows the connect and websocket timeouts to apply to watches instead of a hardcoded timeout
  • Fix #3651: Introduce SchemaFrom annotation as escape hatch (CRD Generator)
  • Fix #3587: adding inform support for limit/batch fetching
  • Fix #3734: extract static finalizer validation method

Dependency Upgrade

  • Fix #3637: Update Fabric8 Kubernetes Model to v1.23.0
  • Fix #3670: Point CamelK Extension model to latest released version v1.7.0
  • Fix #3725: Bump sundrio to v0.50.3

New Features

  • Fix #3721: Add support for uploading file via InputStream
  • Fix #3234: Allow specifying specific localhost while port-forwarding
  • Fix #3506: Add support for Open Cluster Management extension

5.10.2 (2022-01-07)

07 Jan 06:56
Compare
Choose a tag to compare

Bugs

  • Fix #3653: SnakeYAML uses only standard Java types

5.11.2 (2022-01-05)

05 Jan 15:43
Compare
Choose a tag to compare

Bugs

  • Fix #3653: SnakeYAML uses only standard Java types
  • Fix #3697: addresses response that aren't closed by interceptors that issue new requests

5.8.1 (2022-01-05)

05 Jan 15:43
Compare
Choose a tag to compare

Bugs

  • Fix #3653: SnakeYAML uses only standard Java types

5.7.4 (2022-01-05)

05 Jan 15:43
Compare
Choose a tag to compare

Bugs

  • Fix #3653: SnakeYAML uses only standard Java types