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

🌱 Improve patch helper error handling #2865

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

zhanggbj
Copy link
Contributor

@zhanggbj zhanggbj commented Apr 1, 2024

What this PR does / why we need it:
Improve patch helper error handling, as the patch package has improved to contain related context here.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Part of #2549

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 1, 2024
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Apr 1, 2024
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

Attention: Patch coverage is 7.69231% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 63.95%. Comparing base (80d2f2a) to head (8b9dad1).
Report is 11 commits behind head on main.

Files Patch % Lines
controllers/vspheredeploymentzone_controller.go 0.00% 3 Missing ⚠️
pkg/services/govmomi/service.go 0.00% 2 Missing ⚠️
controllers/serviceaccount_controller.go 0.00% 1 Missing ⚠️
controllers/servicediscovery_controller.go 0.00% 1 Missing ⚠️
controllers/vmware/vspherecluster_reconciler.go 0.00% 1 Missing ⚠️
controllers/vspherecluster_reconciler.go 50.00% 1 Missing ⚠️
controllers/vsphereclusteridentity_controller.go 0.00% 1 Missing ⚠️
controllers/vspheremachine_controller.go 0.00% 1 Missing ⚠️
controllers/vspherevm_controller.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2865      +/-   ##
==========================================
- Coverage   63.97%   63.95%   -0.03%     
==========================================
  Files         160      160              
  Lines        9375     9367       -8     
==========================================
- Hits         5998     5991       -7     
+ Misses       2917     2915       -2     
- Partials      460      461       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhanggbj zhanggbj changed the title [WIP] 🌱 Improve patch helper error handling 🌱 Improve patch helper error handling Apr 2, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 2, 2024
Copy link
Member

@chrischdi chrischdi left a comment

Choose a reason for hiding this comment

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

Very nice cleanup, one small nit :-)

@chrischdi
Copy link
Member

/approve

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 2, 2024
@chrischdi
Copy link
Member

/assign sbueringer

@sbueringer
Copy link
Member

Thx! Nice cleanup

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 3, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 15dc658067449ca05fb3e170ac5c8796b9fc0f23

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chrischdi, sbueringer

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [chrischdi,sbueringer]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit dbedef4 into kubernetes-sigs:main Apr 3, 2024
22 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.10 milestone Apr 3, 2024
@sbueringer sbueringer mentioned this pull request Apr 18, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants