Skip to content

feat: windows cse ensure oras and reserve some exit code for network isolated cluster#7995

Open
fseldow wants to merge 4 commits intomainfrom
xinhl/niabwin2
Open

feat: windows cse ensure oras and reserve some exit code for network isolated cluster#7995
fseldow wants to merge 4 commits intomainfrom
xinhl/niabwin2

Conversation

@fseldow
Copy link
Contributor

@fseldow fseldow commented Mar 2, 2026

What this PR does / why we need it:
init oras and reserve some exit code for network isolated cluster

Which issue(s) this PR fixes:

Fixes #

Copilot AI review requested due to automatic review settings March 2, 2026 17:36
@fseldow fseldow marked this pull request as ready for review March 2, 2026 17:37
@fseldow fseldow changed the title feat: init oras and reserve some exit code for network isolated cluster feat: windows cse init oras and reserve some exit code for network isolated cluster Mar 2, 2026
@fseldow fseldow changed the title feat: windows cse init oras and reserve some exit code for network isolated cluster feat: windows cse ensure oras and reserve some exit code for network isolated cluster Mar 2, 2026
Copy link
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

Adds initial ORAS bootstrap support for network-isolated Windows clusters and reserves dedicated exit codes to classify ORAS-related failures.

Changes:

  • Introduces Ensure-Oras to install ORAS from a cached archive on Windows nodes.
  • Reserves/records new ORAS-related Windows CSE exit codes and registers them in ErrorCodeNames.
  • Wires ORAS bootstrapping into BasePrep when a bootstrap profile registry server is configured, and adds Pester coverage.

Reviewed changes

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

File Description
parts/windows/windowscsehelper.tests.ps1 Adds Pester tests covering Ensure-Oras success and failure paths.
parts/windows/windowscsehelper.ps1 Adds ORAS-related exit codes and implements Ensure-Oras.
parts/windows/kuberneteswindowssetup.ps1 Defines ORAS globals for network-isolated clusters and calls Ensure-Oras during base prep.

Copy link
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 3 comments.

@fseldow fseldow requested review from YaoC and yewmsft as code owners March 2, 2026 18:17
Copy link
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 21 out of 21 changed files in this pull request and generated 1 comment.

Copy link
Contributor

@timmy-wright timmy-wright left a comment

Choose a reason for hiding this comment

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

Windows uses the latest CSE script on all VHDs - unlike Linux where we match the AgentBakerSvc version and the VHD version. As older Windows VHDs won't have oras installed on them, the function "Ensure-Oras" will mean that all older windows VHDs will be unable to join clusters. Which is not really an IcM I want to have to deal with.

@fseldow fseldow requested review from sulixu and surajssd as code owners March 2, 2026 20:34
Copilot AI review requested due to automatic review settings March 2, 2026 20:40
Copy link
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 22 out of 22 changed files in this pull request and generated 4 comments.

Copilot AI review requested due to automatic review settings March 2, 2026 20:52
Copy link
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 22 out of 22 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings March 2, 2026 21:03
Copy link
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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copilot AI review requested due to automatic review settings March 3, 2026 02:33
Copy link
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 24 out of 24 changed files in this pull request and generated 7 comments.

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