Skip to content

Conversation

dadrus
Copy link
Owner

@dadrus dadrus commented May 10, 2025

Related issue(s)

closes #2444

Checklist

  • I agree to follow this project's Code of Conduct.
  • I have read, and I am following this repository's Contributing Guidelines.
  • I have read the Security Policy.
  • I have referenced an issue describing the bug/feature request.
  • I have added tests that prove the correctness of my implementation.

Description

This PR fixes a bug in the implementation of the kubernetes provider that caused its reconciliation loop to exit exactly 15 seconds after heimdall startup.

The issue was due to the reconciliation loop being incorrectly tied to the startup context provided by the dependency injection framework used by heimdall (uber/fx). This context includes a default timeout of 15 seconds, after which it gets cancelled - even if startup completed successfully.

As a result, the reconciliation loop was terminated prematurely, preventing any rule set updates after that point.

The given fix decouples the reconciliation loop from the DI startup context.

Copy link

codecov bot commented May 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.65%. Comparing base (e38a29e) to head (4b0d774).
Report is 3 commits behind head on release.

Additional details and impacted files
@@             Coverage Diff             @@
##           release    #2447      +/-   ##
===========================================
+ Coverage    90.62%   90.65%   +0.03%     
===========================================
  Files          280      280              
  Lines        12346    12351       +5     
===========================================
+ Hits         11188    11197       +9     
+ Misses         913      909       -4     
  Partials       245      245              

☔ 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.

@dadrus dadrus self-assigned this May 10, 2025
@dadrus dadrus merged commit 02b778f into release May 10, 2025
19 checks passed
@dadrus dadrus deleted the fix/reconciliation_loop branch May 10, 2025 10:38
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.

Kubernetes provider reconciliation loop exits prematurely, preventing rule set updates
1 participant