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 issue with coredns node hosts controller #9354

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

brandond
Copy link
Member

@brandond brandond commented Feb 5, 2024

Proposed Changes

Fix issue with coredns node hosts controller

The nodes controller was reading from the configmaps cache, but doesn't add any handlers, so if no other controller (the helm controller, for example) adds configmap handlers, the cache would remain empty.

We made the embedded helm-controller disableable a while back, but didn't test the secondary effects that disabling might have on other components that are relying on the caches being populated by the configmap and secret caches that the helm controller fills.

Types of Changes

bugfix

Verification

see linked issue

Testing

Linked Issues

User-Facing Change

fixed issue that could cause coredns pods to fail to start when the embedded helm controller is disabled, due to the configmap not being updated with node hosts entries.

Further Comments

@brandond brandond requested a review from a team as a code owner February 5, 2024 20:29
The nodes controller was reading from the configmaps cache, but doesn't add any handlers, so if no other controller added configmap handlers, the cache would remain empty.

Signed-off-by: Brad Davidson <[email protected]>
@brandond brandond force-pushed the fix-coredns-node-controller-race branch from 1ecf09c to 3d76699 Compare February 5, 2024 20:37
Copy link

codecov bot commented Feb 5, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (57482a1) 45.69% compared to head (3d76699) 14.88%.

Files Patch % Lines
pkg/node/controller.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #9354       +/-   ##
===========================================
- Coverage   45.69%   14.88%   -30.81%     
===========================================
  Files         154      154               
  Lines       16623    16625        +2     
===========================================
- Hits         7596     2475     -5121     
- Misses       7814    13833     +6019     
+ Partials     1213      317      -896     
Flag Coverage Δ
e2etests ?
inttests 5.45% <0.00%> (-32.12%) ⬇️
unittests 15.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@brandond brandond merged commit 888f866 into k3s-io:master Feb 7, 2024
15 checks passed
@brandond brandond deleted the fix-coredns-node-controller-race branch June 6, 2024 21:15
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.

3 participants