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: Add $SUDO prefix to transactional-update commands in install script #10531

Merged
merged 2 commits into from
Aug 12, 2024

Conversation

ChrisBeaker
Copy link
Contributor

Proposed Changes

This commit addresses an issue in the k3s install script where the transactional-update commands did not include the $SUDO variable. This omission caused the script to fail if sudo was not used. Adding the $SUDO prefix ensures that the script runs correctly in all environments.

Types of Changes

Bugfix

Verification

Aligned to existing commands already using sudo

Testing

Linked Issues

#10530

User-Facing Change

NONE

Further Comments

@ChrisBeaker ChrisBeaker requested a review from a team as a code owner July 16, 2024 09:24
@dereknola
Copy link
Member

You need to update the install.sh.sha256sum

sha256sum install.sh &> install.sh.sha256sum

@ChrisBeaker
Copy link
Contributor Author

@dereknola Thanks for the hint, I have updated the checksum file as requested.

dereknola
dereknola previously approved these changes Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.50%. Comparing base (ac247d2) to head (8022d3e).

❗ There is a different number of reports uploaded between BASE (ac247d2) and HEAD (8022d3e). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (ac247d2) HEAD (8022d3e)
e2etests 7 6
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #10531      +/-   ##
==========================================
- Coverage   49.56%   43.50%   -6.06%     
==========================================
  Files         179      179              
  Lines       14955    14955              
==========================================
- Hits         7412     6506     -906     
- Misses       6184     7254    +1070     
+ Partials     1359     1195     -164     
Flag Coverage Δ
e2etests 36.25% <ø> (-10.10%) ⬇️
inttests 36.67% <ø> (+16.96%) ⬆️
unittests 13.41% <ø> (ø)

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.

This commit addresses an issue in the k3s install script where the transactional-update commands did not include the $SUDO variable. This omission caused the script to fail if sudo was not used. Adding the $SUDO prefix ensures that the script runs correctly in all environments.

Signed-off-by: ChrisBeaker <christian.siebigteroth@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
This commit addresses an issue in the k3s install script where the transactional-update commands did not include the $SUDO variable. This omission caused the script to fail if sudo was not used. Adding the $SUDO prefix ensures that the script runs correctly in all environments.

Signed-off-by: Derek Nola <derek.nola@suse.com>
@dereknola dereknola force-pushed the add-sudo-to-transactional-update branch from 1093cf0 to 8022d3e Compare August 12, 2024 17:00
@dereknola dereknola merged commit 019b0af into k3s-io:master Aug 12, 2024
36 checks passed
ludost pushed a commit to asimovo-platform/k3s that referenced this pull request Oct 2, 2024
…ipt (k3s-io#10531)

* Fix: Add $SUDO prefix to transactional-update commands in install script

This commit addresses an issue in the k3s install script where the transactional-update commands did not include the $SUDO variable. This omission caused the script to fail if sudo was not used. Adding the $SUDO prefix ensures that the script runs correctly in all environments.

Signed-off-by: ChrisBeaker <christian.siebigteroth@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
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