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 nil map in full snapshot configmap reconcile #9049

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

brandond
Copy link
Member

@brandond brandond commented Dec 13, 2023

Proposed Changes

If a full reconcile wins the race against sync of an individual snapshot resource, or someone intentionally deletes the configmap, the data map could be nil and cause a crash.

Types of Changes

bugfix

Verification

See linked issue

Testing

Linked Issues

User-Facing Change

Further Comments

@brandond brandond requested a review from a team as a code owner December 13, 2023 00:34
If a full reconcile wins the race against sync of an individual snapshot resource, or someone intentionally deletes the configmap, the data map could be nil and cause a crash.

Signed-off-by: Brad Davidson <[email protected]>
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

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

Comparison is base (08ccea5) 41.56% compared to head (39bf579) 41.51%.
Report is 2 commits behind head on master.

Files Patch % Lines
pkg/etcd/snapshot_controller.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9049      +/-   ##
==========================================
- Coverage   41.56%   41.51%   -0.05%     
==========================================
  Files         148      148              
  Lines       15946    15949       +3     
==========================================
- Hits         6628     6622       -6     
- Misses       8189     8196       +7     
- Partials     1129     1131       +2     
Flag Coverage Δ
inttests 38.72% <0.00%> (-0.07%) ⬇️
unittests 18.34% <0.00%> (-0.01%) ⬇️

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 319dca3 into k3s-io:master Jan 5, 2024
15 checks passed
@brandond brandond deleted the fix-etcd-nil-map branch June 6, 2024 21:18
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