Skip to content
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 #802: Update Fabric8 Kubernetes Client to v5.10.1 #1120

Merged
merged 3 commits into from Nov 17, 2021

Conversation

rohanKanojia
Copy link
Member

@rohanKanojia rohanKanojia commented Nov 16, 2021

Description

Fix #802

  • Update Fabric8 Kubernetes Client to v5.10.1
  • Remove GenericCustomResource from project and replace it with GenericKubernetesResource(provided by Fabric8 Kubernetes Client)
    +Refactor ApplyService#applyGenericKubernetesResource CustomResourceDefinition discovery logic to use genericKubernetesResources(apiVersion, kind) method instead
  • Update Framework CustomResourceDefinition manifest in Spring Boot CRD Quickstart to apiextensions.k8s.io/v1 from apiextensions.k8s.io/v1beta1

CQs:

Signed-off-by: Rohan Kumar rohaan@redhat.com

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change
  • Chore (non-breaking change which doesn't affect codebase;
    test, version modification, documentation, etc.)

Checklist

@rohanKanojia rohanKanojia changed the title Fix #802: Update Fabric8 Kubernetes Client to v5.10.0 Fix #802: Update Fabric8 Kubernetes Client to v5.10.1 Nov 16, 2021
@codecov
Copy link

codecov bot commented Nov 16, 2021

Codecov Report

Merging #1120 (cbdb089) into master (6ba7797) will decrease coverage by 0.14%.
The diff coverage is 75.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1120      +/-   ##
============================================
- Coverage     49.08%   48.94%   -0.15%     
+ Complexity     3642     3606      -36     
============================================
  Files           458      456       -2     
  Lines         20778    20709      -69     
  Branches       2829     2824       -5     
============================================
- Hits          10199    10135      -64     
- Misses         9495     9498       +3     
+ Partials       1084     1076       -8     
Impacted Files Coverage Δ
.../kit/enricher/api/util/KubernetesResourceUtil.java 38.41% <0.00%> (ø)
...rg/eclipse/jkube/kit/common/util/ResourceUtil.java 56.25% <16.66%> (-7.82%) ⬇️
...eclipse/jkube/kit/config/service/ApplyService.java 22.02% <81.25%> (-0.45%) ⬇️
...clipse/jkube/kit/common/util/KubernetesHelper.java 28.37% <100.00%> (-2.35%) ⬇️
...onfig/service/kubernetes/KubernetesClientUtil.java 31.16% <100.00%> (-4.98%) ⬇️
.../service/kubernetes/KubernetesUndeployService.java 94.23% <100.00%> (+1.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ba7797...cbdb089. Read the comment docs.

@rohanKanojia rohanKanojia force-pushed the pr/issue802 branch 2 times, most recently from ab63472 to 4b83328 Compare November 16, 2021 10:43
@rohanKanojia rohanKanojia marked this pull request as ready for review November 16, 2021 11:02
private static boolean isGenericCustomResourceCompatible(Class<?> clazz){
return clazz.isAssignableFrom(GenericCustomResource.class);
private static boolean isGenericKubernetesResourceCompatible(Class<?> clazz){
return clazz.isAssignableFrom(GenericKubernetesResource.class);
Copy link
Member

@manusa manusa Nov 17, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will probably need to change, especially in scope of #778 + #1113 + #1114

@rohanKanojia rohanKanojia force-pushed the pr/issue802 branch 2 times, most recently from 0267896 to 391271d Compare November 17, 2021 09:14
@rohanKanojia rohanKanojia force-pushed the pr/issue802 branch 3 times, most recently from 2856e04 to b32b2f8 Compare November 17, 2021 10:30
+ Update Fabric8 Kubernetes Client to v5.10.1
+ Remove GenericCustomResource from project and replace it with GenericKubernetesResource(provided by Fabric8 Kubernetes Client)
+ Refactor ApplyService#applyGenericKubernetesResource CustomResourceDefinition discovery logic to use genericKubernetesResources(apiVersion, kind) method instead
+ Update Framework CustomResourceDefinition manifest in Spring Boot CRD Quickstart to apiextensions.k8s.io/v1 from apiextensions.k8s.io/v1beta1

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
…OpenShiftMockServer

Signed-off-by: Rohan Kumar <rohaan@redhat.com>
Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@sonarcloud
Copy link

sonarcloud bot commented Nov 17, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

71.7% 71.7% Coverage
0.0% 0.0% Duplication

@manusa manusa added this to the 1.6.0 milestone Nov 17, 2021
@manusa manusa merged commit 5a6c996 into eclipse-jkube:master Nov 17, 2021
@rohanKanojia rohanKanojia deleted the pr/issue802 branch November 17, 2021 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deps: Bump Kubernetes|OpenShift client to 5.10.1 (or latest)
2 participants