Skip to content

fix(ngrok): use ReconcileStatus for CloudEndpoint IsNotFound handling…#799

Merged
alex-bezek merged 1 commit into
mainfrom
fix/k8sop-248-cloudendpoint-status
Apr 14, 2026
Merged

fix(ngrok): use ReconcileStatus for CloudEndpoint IsNotFound handling…#799
alex-bezek merged 1 commit into
mainfrom
fix/k8sop-248-cloudendpoint-status

Conversation

@alex-bezek
Copy link
Copy Markdown
Collaborator

related: K8SOP-240

What

CloudEndpoint bypassed ReconcileStatus and silently discarded the status update error when handling ngrok.IsNotFound. This was inconsistent with every other controller (IPPolicy, Domain, AgentEndpoint) and skipped error wrapping, event recording, and the 10-second requeue-on-conflict logic.

How

Replaced _ = r.Client.Status().Update(ctx, clep) with r.controller.ReconcileStatus(ctx, clep, nil), matching the standard pattern. Also documented the status update pattern in specs/controllers/status-updates.md.

Breaking Changes

None

… — bug 2.4

CloudEndpoint bypassed ReconcileStatus and silently discarded the
status update error when handling ngrok.IsNotFound. Now follows
the standard pattern used by IPPolicy and other controllers.

Bug-ID: 2.4

Co-Authored-By: Claude <noreply@anthropic.com>
@alex-bezek alex-bezek requested a review from a team as a code owner April 9, 2026 14:05
@github-actions github-actions Bot added area/controller Issues dealing with the controller size/XS Denotes a PR that changes 0-9 lines labels Apr 9, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 9, 2026

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.50%. Comparing base (5f44c0a) to head (c16fbd6).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
...ernal/controller/ngrok/cloudendpoint_controller.go 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #799      +/-   ##
==========================================
- Coverage   51.80%   51.50%   -0.30%     
==========================================
  Files         101      101              
  Lines       11188    11189       +1     
==========================================
- Hits         5796     5763      -33     
- Misses       4976     5003      +27     
- Partials      416      423       +7     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@alex-bezek alex-bezek added this pull request to the merge queue Apr 14, 2026
Merged via the queue into main with commit 6f4f19c Apr 14, 2026
15 checks passed
@alex-bezek alex-bezek deleted the fix/k8sop-248-cloudendpoint-status branch April 14, 2026 16:09
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 size/XS Denotes a PR that changes 0-9 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants