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 #756: Service re-apply error happening during k8s:watch #757

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

rohanKanojia
Copy link
Member

@rohanKanojia rohanKanojia commented Jul 2, 2021

Description

Fix #756

Use patch() instead of edit() since we don't seem to be making use of the p(argument in UnaryOperator which is usually resource fetched from Server).

Based on discussion here fabric8io/kubernetes-client#3221 (comment)

Signed-off-by: Rohan Kumar [email protected]

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

@codecov
Copy link

codecov bot commented Jul 2, 2021

Codecov Report

Merging #757 (f9b207b) into master (35666d9) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #757   +/-   ##
=========================================
  Coverage     46.21%   46.21%           
+ Complexity     3246     3245    -1     
=========================================
  Files           413      413           
  Lines         19856    19856           
  Branches       2781     2781           
=========================================
  Hits           9176     9176           
  Misses         9661     9661           
  Partials       1019     1019           
Impacted Files Coverage Δ
...eclipse/jkube/kit/config/service/PatchService.java 33.87% <100.00%> (ø)

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 35666d9...f9b207b. Read the comment docs.

@manusa
Copy link
Member

manusa commented Jul 7, 2021

Please check and add references to the changes in the Fabric8 Kubernetes Client project that made this changes required.

@rohanKanojia rohanKanojia force-pushed the pr/fix-watcher-issue branch from 00c878f to 716cc62 Compare July 7, 2021 16:41
@manusa
Copy link
Member

manusa commented Jul 8, 2021

Please check and add references to the changes in the Fabric8 Kubernetes Client project that made this changes required.

fabric8io/kubernetes-client#3221 (review)

@manusa manusa self-requested a review July 9, 2021 07:31
…atch`

Use patch() instead of edit() in order to avoid 422 from APIServer.
KubernetesClient no longer handles object modification in case of
edit() when base object is provided.

Signed-off-by: Rohan Kumar <[email protected]>
@manusa manusa force-pushed the pr/fix-watcher-issue branch from 716cc62 to f9b207b Compare July 12, 2021 13:19
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@manusa manusa merged commit 8b34b70 into eclipse-jkube:master Jul 12, 2021
@manusa manusa added this to the 1.4.0 milestone Jul 14, 2021
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.

k8s:watch broken; Service redeploy error since upgrade to Fabric8 Kubernetes Client
2 participants