Skip to content

feat: add property TestMode for some force e2e test#8076

Merged
fseldow merged 1 commit intomainfrom
xinhl/nie2eproperty
Mar 11, 2026
Merged

feat: add property TestMode for some force e2e test#8076
fseldow merged 1 commit intomainfrom
xinhl/nie2eproperty

Conversation

@fseldow
Copy link
Contributor

@fseldow fseldow commented Mar 11, 2026

What this PR does / why we need it:
feat: add property TestMode for some force e2e test
Then we can replace VMSS tag for forcePMC in network isolated cluster to avoid cached packages skip the download logic, and partially allow custom script in windows node for easier e2e test.
Which issue(s) this PR fixes:

Fixes #

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 an e2e-only “test mode” flag to the private egress/security profile model and exposes it through the template function map (intended to support network-isolated cluster scenarios).

Changes:

  • Add TestMode to datamodel.PrivateEgress plus a SecurityProfile getter (GetPrivateEgressTestMode).
  • Add a new template function GetNetworkIsolatedClusterTestMode to the AgentBaker template func map.

Reviewed changes

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

File Description
pkg/agent/datamodel/types.go Adds PrivateEgress.TestMode and a corresponding getter on SecurityProfile.
pkg/agent/baker.go Exposes the new flag via the template func map for template/script generation.

@fseldow fseldow merged commit 7d23cdc into main Mar 11, 2026
25 of 26 checks passed
@fseldow fseldow deleted the xinhl/nie2eproperty branch March 11, 2026 15:44
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