-
Notifications
You must be signed in to change notification settings - Fork 232
[AI Generated] BugFix: add securityProfile to ephemeral OS disk for ConfidentialVM deployments #4442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[AI Generated] BugFix: add securityProfile to ephemeral OS disk for ConfidentialVM deployments #4442
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -211,7 +211,6 @@ def verify_deployment_provision_standard_ssd_disk( | |
| requirement=simple_requirement( | ||
| environment_status=EnvironmentStatus.Deployed, | ||
| disk=DiskEphemeral(), | ||
| supported_features=[CvmDisabled()], # TODO: Fix disk deployment for CVM | ||
| ), | ||
|
Comment on lines
211
to
214
|
||
| ) | ||
| def verify_deployment_provision_ephemeral_managed_disk( | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -111,6 +111,9 @@ func getLinuxConfiguration(keyPath string, publicKeyData string, disable_passwor | |||||||||||||||||
|
|
||||||||||||||||||
| func getEphemeralOSImage(node object) object => { | ||||||||||||||||||
| name: '${node.name}-osDisk' | ||||||||||||||||||
| managedDisk: { | ||||||||||||||||||
| securityProfile: (empty(node.security_profile) || (node.security_profile.security_type != 'ConfidentialVM')) ? null : getSecurityProfileForOSDisk(node) | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+114
to
+116
|
||||||||||||||||||
| managedDisk: { | |
| securityProfile: (empty(node.security_profile) || (node.security_profile.security_type != 'ConfidentialVM')) ? null : getSecurityProfileForOSDisk(node) | |
| } | |
| ...((empty(node.security_profile) || (node.security_profile.security_type != 'ConfidentialVM')) ? {} : { | |
| managedDisk: { | |
| securityProfile: getSecurityProfileForOSDisk(node) | |
| } | |
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the
CvmDisabled()constraint means this provisioning smoke test no longer guarantees coverage of the original failing scenario (CVM + ephemeral OS disk) in automated runs—selection may still choose a non-CVM security profile. Consider adding a dedicated test case (or adjusting this one) that explicitly requiresCvmEnabled()along withDiskEphemeral()so the regression is continuously exercised.