Skip to content

fix: dont run scriptless phase2 if preprovision is turned on#8440

Merged
awesomenix merged 1 commit intomainfrom
nishp/cleanup/gputests
May 1, 2026
Merged

fix: dont run scriptless phase2 if preprovision is turned on#8440
awesomenix merged 1 commit intomainfrom
nishp/cleanup/gputests

Conversation

@awesomenix
Copy link
Copy Markdown
Contributor

Disable phase 2 provisioning if preprovision is on

Copy link
Copy Markdown
Contributor

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

Disables scriptless NBC “phase 2” behavior when pre-provisioning mode (PreProvisionOnly) is enabled, to avoid running the scriptless provisioning flow during image-capture scenarios.

Changes:

  • Guarded scriptless NBC customData payload generation behind !PreProvisionOnly.
  • Updated e2e VMSS creation to skip the NBC cmd hack path when PreProvisionOnly is set.

Reviewed changes

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

File Description
pkg/agent/baker.go Prevents scriptless NBC boothook/ignition customData generation when preprovisioning-only mode is enabled.
e2e/vmss.go Skips injecting/running the scriptless NBC cmd hack during VMSS creation when preprovisioning-only mode is enabled.

Comment thread pkg/agent/baker.go
Comment thread pkg/agent/baker.go
Copilot AI review requested due to automatic review settings May 1, 2026 02:06
@awesomenix awesomenix force-pushed the nishp/cleanup/gputests branch from 1d7653e to ed2f5ed Compare May 1, 2026 02:06
Copy link
Copy Markdown
Contributor

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

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

@awesomenix awesomenix merged commit 8b20cff into main May 1, 2026
32 of 36 checks passed
@awesomenix awesomenix deleted the nishp/cleanup/gputests branch May 1, 2026 03:37
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