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

Add ngrok enriched errors #555

Merged
merged 2 commits into from
Jan 23, 2025
Merged

Add ngrok enriched errors #555

merged 2 commits into from
Jan 23, 2025

Conversation

hjkatz
Copy link
Contributor

@hjkatz hjkatz commented Dec 17, 2024

What

Describe what the change is solving

Add support for ngrok.Error and enriched errors

How

Describe the solution

New package

Breaking Changes

Are there any breaking changes in this PR?

@hjkatz hjkatz requested a review from a team as a code owner December 17, 2024 15:59
@github-actions github-actions bot added area/controller Issues dealing with the controller area/helm-chart Issues dealing with the helm chart labels Dec 17, 2024
Copy link
Contributor Author

hjkatz commented Dec 17, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@hjkatz hjkatz force-pushed the hkatz/enriched-errors branch from 3707f6d to 486299d Compare December 17, 2024 16:06
Copy link
Collaborator

@Megalonia Megalonia left a comment

Choose a reason for hiding this comment

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

lgtm

return ctrl.Result{RequeueAfter: 30 * time.Second}, nerr
case ngrok.IsErrorCode(nerr, ngrokapi.NgrokOpErrFailedToCreateUpstreamService.Code, ngrokapi.NgrokOpErrFailedToCreateTargetService.Code):
return ctrl.Result{RequeueAfter: 1 * time.Minute}, nerr
case ngrok.IsErrorCode(nerr, ngrokapi.NgrokOpErrEndpointDenied.Code):
Copy link
Member

Choose a reason for hiding this comment

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

this won't be relevant anymore, but we can remove it after we remove the enriched error on the other side

@masonj5n masonj5n force-pushed the hkatz/enriched-errors branch 4 times, most recently from 2bfebdb to a9884be Compare January 23, 2025 21:12
@masonj5n masonj5n force-pushed the hkatz/enriched-errors branch from a9884be to ae9d29f Compare January 23, 2025 21:32
Copy link

codecov bot commented Jan 23, 2025

Codecov Report

Attention: Patch coverage is 0% with 47 lines in your changes missing coverage. Please review.

Project coverage is 23.60%. Comparing base (ba5c219) to head (ae9d29f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...al/controller/bindings/boundendpoint_controller.go 0.00% 26 Missing ⚠️
internal/ngrokapi/enriched_errors.go 0.00% 14 Missing ⚠️
internal/controller/base_controller.go 0.00% 6 Missing ⚠️
.../controller/ngrok/kubernetesoperator_controller.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #555      +/-   ##
==========================================
- Coverage   23.67%   23.60%   -0.07%     
==========================================
  Files          88       89       +1     
  Lines       12484    12521      +37     
==========================================
  Hits         2955     2955              
- Misses       9339     9376      +37     
  Partials      190      190              

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

@masonj5n masonj5n added this pull request to the merge queue Jan 23, 2025
Merged via the queue into main with commit 554bb8b Jan 23, 2025
11 checks passed
@masonj5n masonj5n deleted the hkatz/enriched-errors branch January 23, 2025 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/controller Issues dealing with the controller area/helm-chart Issues dealing with the helm chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants