Skip to content

fix: add --allow-change-held-packages to node bootstrap script#53

Merged
bcho merged 1 commit intomainfrom
fix/node-bootstrap-script-held-packages
Mar 13, 2026
Merged

fix: add --allow-change-held-packages to node bootstrap script#53
bcho merged 1 commit intomainfrom
fix/node-bootstrap-script-held-packages

Conversation

@qike-ms
Copy link
Collaborator

@qike-ms qike-ms commented Mar 13, 2026

Summary

  • Adds --allow-change-held-packages flag to apt-get install in the node bootstrap script template, fixing package installation failures when Kubernetes packages (kubelet, kubectl, etc.) are held at a specific version.
  • Updates corresponding test assertion to match the new flag.

Changes

  • cli/internal/config/nodebootstrap/assets/script.sh.tmpl — add --allow-change-held-packages to the apt-get install command
  • cli/internal/config/nodebootstrap/script_test.go — update test expectation to include the new flag

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the node bootstrap script variant template to tolerate APT “held” packages during installation, aligning generated scripts and their tests with this new behavior.

Changes:

  • Add --allow-change-held-packages to the apt-get install command in the node bootstrap script template.
  • Update the script marshaling unit test to assert the new install command output.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
cli/internal/config/nodebootstrap/assets/script.sh.tmpl Adds the APT flag to prevent install failures when target packages are held.
cli/internal/config/nodebootstrap/script_test.go Updates expected output strings to match the new rendered script.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@bcho bcho merged commit 2a5060a into main Mar 13, 2026
9 checks passed
@bcho bcho deleted the fix/node-bootstrap-script-held-packages branch March 13, 2026 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