Skip to content

Conversation

@mxj220
Copy link
Contributor

@mxj220 mxj220 commented Feb 2, 2026

What this PR does / why we need it:
Adds E2E for TrustedLaunch FIPS 22.04 VHD

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

This PR adds end-to-end testing support for TrustedLaunch-enabled FIPS Ubuntu 22.04 Gen2 VHD. The changes introduce a new distro constant and corresponding E2E test configuration to validate that nodes using the TrustedLaunch FIPS VHD can be properly bootstrapped with the required security features.

Changes:

  • Added new distro constant for TrustedLaunch FIPS Ubuntu 22.04 Gen2
  • Created E2E test for TrustedLaunch FIPS functionality
  • Added VHD configuration for the new TrustedLaunch FIPS image

Reviewed changes

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

File Description
pkg/agent/datamodel/types.go Defines new distro constant for TrustedLaunch FIPS Ubuntu 22.04 Gen2
e2e/scenario_test.go Implements E2E test validating TrustedLaunch FIPS VHD bootstrapping
e2e/config/vhd.go Configures VHD image metadata for TrustedLaunch FIPS testing


func Test_Ubuntu2204Gen2FIPSTL(t *testing.T) {
RunScenario(t, &Scenario{
Description: "Tests that a node using the Ubuntu 2204 FIPS Gen2 VHD can be properly bootstrapped",
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

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

The description incorrectly states 'Ubuntu 2204 FIPS Gen2 VHD' but should specify 'Ubuntu 2204 FIPS TrustedLaunch Gen2 VHD' to accurately reflect that this test is specifically for the TrustedLaunch variant.

Suggested change
Description: "Tests that a node using the Ubuntu 2204 FIPS Gen2 VHD can be properly bootstrapped",
Description: "Tests that a node using the Ubuntu 2204 FIPS TrustedLaunch Gen2 VHD can be properly bootstrapped",

Copilot uses AI. Check for mistakes.
Description: "Tests that a node using the Ubuntu 2204 FIPS Gen2 VHD can be properly bootstrapped",
Config: Config{
Cluster: ClusterKubenet,
VHD: config.VHDUbuntu2204Gen2FIPSContainerd,
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

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

The VHD configuration references 'VHDUbuntu2204Gen2FIPSContainerd' but should reference 'VHDUbuntu2204Gen2FIPSTLContainerd' to use the TrustedLaunch FIPS VHD that was defined in e2e/config/vhd.go.

Suggested change
VHD: config.VHDUbuntu2204Gen2FIPSContainerd,
VHD: config.VHDUbuntu2204Gen2FIPSTLContainerd,

Copilot uses AI. Check for mistakes.
Comment on lines +447 to +448
BootstrapConfigMutator: func(nbc *datamodel.NodeBootstrappingConfiguration) {
},
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

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

Empty function body. If no bootstrap configuration mutations are needed, consider removing this field entirely or adding a comment explaining why it's intentionally empty.

Copilot uses AI. Check for mistakes.
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.

2 participants