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

[release-1.29] Fix issues loading data-dir value from env vars or dropin config files #10597

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

brandond
Copy link
Member

Backport of #10591

Proposed Changes

  • Don't set K3S_DATA_DIR env var in self-extracting multicall wrapper
    This was only used to pass the bundled strongswan path through to the flannel ipsec backend, and is no longer needed. Ref: Initial encrypted network support #719
  • Add K3S_DATA_DIR as env var for --data-dir flag
  • Fix inconsistent loading of config dropins when config file does not exist
    configfilearg.FindString would silently skip parsing dropins if the main config file didn't exist. If a custom config file path was passed it would raise an error, but if we were parsing the default config file and it didn't exist it would just silently fail to load the dropins.

Types of Changes

bugfix

Verification

Includes tests

Testing

See linked issue

Linked Issues

User-Facing Change


Further Comments

This was only used to pass the bundled strongswan path through to the flannel ipsec backend, and is no longer needed. Ref: k3s-io#719

Signed-off-by: Brad Davidson <[email protected]>
…exist

FindString would silently skip parsing dropins if the main config file
didn't exist. If a custom config file path was passed it would raise an
error, but if we were parsing the default config file and it didn't
exist it would just silently fail to load the dropins.

Signed-off-by: Brad Davidson <[email protected]>
@brandond brandond requested a review from a team as a code owner July 29, 2024 22:07
Copy link

codecov bot commented Jul 29, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 3 lines in your changes missing coverage. Please review.

Project coverage is 45.08%. Comparing base (93fc189) to head (7a4418d).

Files Patch % Lines
pkg/configfilearg/parser.go 91.17% 1 Missing and 2 partials ⚠️

❗ There is a different number of reports uploaded between BASE (93fc189) and HEAD (7a4418d). Click for more details.

HEAD has 18 uploads less than BASE
Flag BASE (93fc189) HEAD (7a4418d)
unittests 2 1
inttests 20 10
e2etests 13 6
Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.29   #10597      +/-   ##
================================================
- Coverage         51.87%   45.08%   -6.79%     
================================================
  Files               165      165              
  Lines             14339    14332       -7     
================================================
- Hits               7438     6462     -976     
- Misses             5535     6678    +1143     
+ Partials           1366     1192     -174     
Flag Coverage Δ
e2etests 36.14% <13.88%> (-10.44%) ⬇️
inttests 36.75% <30.55%> (-0.02%) ⬇️
unittests 19.26% <86.11%> (+0.02%) ⬆️

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 f246bbc into k3s-io:release-1.29 Jul 30, 2024
29 checks passed
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.

2 participants