Releases: fabric8io/kubernetes-client
Releases · fabric8io/kubernetes-client
5.3.1 (2021-04-26)
Bugs
- Fix #2991: reduced the level of ReflectWatcher event recieved log
- Fix #2992: allowing Watch auto-reconnect for shared informers
- Fix #2994: updating the SharedIndexInformer indexer state for a delete event generated by resync
- Fix #2910: Move crd-generator tests from kubernetes-itests to kubernetes-tests
- Fix #3005: Make it possible to select which CRD version is generated / improve output
- Fix #3011: properly handle enum types for additional printer columns
- Fix #3020: annotations should now properly have their associated values when processing CRDs from the API
4.13.3 (2021-04-22)
Bugs
- Fix: Set no_proxy in the okhttp builder in case the proxy_url is null
- Fix #3027: fix NPE when sorting events in KubernetesResourceUtil
5.3.0 (2021-04-08)
Bugs
- Fix #2620: Add support for
config.openshift.io/v1
Ingress - Fix #2784: Not able to deserialize ClusterServiceVersion
- Fix #2935: CRD generator no longer treat enum values as properties (performance)
- Fix #2812: SharedIndexInformer EventHandler sees double updates at resync interval
- Fix #2937: SharedInformerFactory#getExistingSharedIndexInformer returns null when @kind is configured
- Fix #2924: Creating a CustomResourceInfo from a class doesn't result in the expected information
- Fix #2967: Copy to/from pods: fixed error message; removed debug output
- Fix #2923: Edit a CustomResource should result in a patch
Improvements
- Fix #2950: RawCustomResourceOperationsImpl should also work with standard resources
- Fix #2938: Make it possible to manage Tekton Triggers directly
- Fix #2921: Kubernetes server mock will generate missing metadata fields
- Fix #2946: Kubernetes server mock watch will generate initial ADDED events
- Fix #2925: Add CustomResource.getShortNames(Class) method
Dependency Upgrade
- Fix #2971: Upgrade to sundrio 0.30.0
New Features
5.2.1 (2021-03-16)
5.2.0 (2021-03-12)
Bugs
- Fix #2802: NullPointerException in HasMetadataOperation patch/replace when using KubernetesMockServer
- Fix #2828: Remove automatic instantiation of CustomResource spec and status as this feature was causing more issues than it was solving
- Fix #2857: Fix the log of an unexpected error from an Informer's EventHandler
- Fix #2853: Cannot change the type of the Service from ClusterIP to ExternalName with PATCH
- Fix #2855:
.withPropagationPolicy
and.withGracePeriod
DSL methods can't be combined for Resource API deletion operations - Fix #2783: OpenIDConnectionUtils#persistKubeConfigWithUpdatedToken persists access token instead of refresh token
- Fix #2871: Change longFileMode to LONGFILE_POSIX for creating tar in PodUpload, improve exception handling in PodUpload.
- Fix #2746: SharedInformerFactory should use key formed from OperationContext
- Fix #2736: Move CRD annotations to kubernetes-model-common module for greater coherence
- Fix #2836: Make CRD generation usable at runtime, split the generator into api and apt modules,
thecrd-generator-apt
artifact corresponding to the previouscrd-generator
artifact, while the
crd-generator-api
artifact can be consumed directly to generate the CRDs at runtime.
Improvements
- Fix #2781: RawCustomResourceOperationsImpl#delete now returns a boolean value for deletion status
- Fix #2780: Refactor RawCustomResourceOperationsImpl#delete(String)
New Features
5.1.1 (2021-02-24)
Bugs
- Fix #2747: Apiextensions DSL should use NonNamespaceOperation for CustomResourceDefinitions
- Fix #2819: simple enums are now supported when generating CRDs
- Fix #2827: CNFE when initialzing CustomResource instances
- Fix #2815:
client.isAdaptable(OpenShiftClient.class)
doesn't work on OpenShift 4 - Fix #2833: Knative model genrator is now aligned with all other generators
5.1.0 (2021-02-17)
Bugs
- Fix #2748: Pass custom headers in kubernetes-client to watch api by modify WatchConnectionManager
- Fix #2745: Filtering Operations can't configure PropagationPolicy
- Fix #2672: WaitUntilReady for Service resource throws IllegalArgumentException
Improvements
- Fix #2717: Remove edit() methods from RawCustomResourceOperationsImpl taking InputStream arguments
- Fix #2757: add
storage
andserved
toVersion
annotation - Fix #2759: add
ShortNames
annotation to specify short names for CRD generation - Fix #2694: Remove deprecated methods from KubernetesClient DSL
- Fix #2716: Add a property to disable BackwardCompatibilityInterceptor
Dependency Upgrade
New Features
- Fix #2702: Add support for discovery.k8s.io/v1beta1 EndpointSlice in KubernetesClient DSL
- Fix #2703: Add support for
certificates.k8s.io
v1 and v1beta1 API in KubernetesClient DSL - Fix #2708: Update CSI Volume Snapshot API to v1
- Fix #2789: Use thread context class loader instead of
Class.forName
- Fix #2779: Add DSL support for
scheduling.k8s.io
v1
andv1beta1
to SchedulingAPIGroupDSL - Fix #2776: Preview release of CRD generator based on annotations
- Classes extending the
CustomResource
class can now be used as the basis for CRD generation - Several annotations are available to override the default behavior if it doesn't fit your needs
- Validation schema is automatically derived from your class' spec implementation (or from the CR
class, if no spec is present) - CRDs are automatically generated at compile-time if you include the
io.fabric8:crd-generator
dependency to your project (with the suggestedcompile
scope) - CRDs are generated for both
v1beta1
andv1
versions of the specification at this point - One CRD manifest is generated per CRD using the CRD name (e.g.
mycrplural.group.example.com
)
suffixed with the specification version, e.g.mycrplural.group.example.com-v1.yml
- The CRD files are generated in the
target/META-INF/fabric8
directory of your project
- Classes extending the
Note: Breaking changes in the API
DSL Changes:
client.settings()
DSL has been removed since PodPreset v1alpha1 API is no longer present in Kubernetes 1.20.xclient.customResourceDefinitions()
has been removed. Useclient.apiextensions().v1beta1().customResourceDefinitions()
insteadclient.events()
has been removed. Useclient.v1().events()
insteadclient.customResource(...)
method is removed. Useclient.customResources(...)
with CustomResource configuration in annotations inside POJOs
Model Changes:
- Classes in
io.fabric8.kubernetes.api.model.scheduling
have been moved toio.fabric8.kubernetes.api.model.scheduling.v1
andio.fabric8.kubernetes.api.model.scheduling.v1beta1
- Classes in
io.fabric8.kubernetes.api.model.admission
have been moved toio.fabric8.kubernetes.api.model.admission.v1
andio.fabric8.kubernetes.api.model.admission.v1beta1
- Classes in
io.fabric8.kubernetes.api.model.certificates
have been moved toio.fabric8.kubernetes.api.model.certificates.v1
andio.fabric8.kubernetes.api.model.certificates.v1beta1
- Classes in
io.fabric8.kubernetes.api.model.events
have been moved toio.fabric8.kubernetes.api.model.events.v1
andio.fabric8.kubernetes.api.model.events.v1beta1
4.11.2 (2021-02-09)
Bugs
- Fix #2715: CVE-2021-20218 vulnerable to a path traversal leading to integrity and availability compromise
4.7.2 (2021-02-09)
Bugs
- Fix #2715: CVE-2021-20218 vulnerable to a path traversal leading to integrity and availability compromise
5.0.2 (2021-02-08)
Bugs
- Fix #2715: CVE-2021-20218 vulnerable to a path traversal leading to integrity and availability compromise