mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-11 15:39:33 -05:00
cli: set Azure ConfidentialVM option in terraform vars when migrating (#2113)
This commit is contained in:
parent
320fd4b726
commit
f597c12bca
@ -257,9 +257,6 @@ func parseTerraformUpgradeVars(cmd *cobra.Command, conf *config.Config, fetcher
|
||||
|
||||
vars := &terraform.AzureClusterVariables{
|
||||
Name: conf.Name,
|
||||
ResourceGroup: conf.Provider.Azure.ResourceGroup,
|
||||
UserAssignedIdentity: conf.Provider.Azure.UserAssignedIdentity,
|
||||
ImageID: imageRef,
|
||||
NodeGroups: map[string]terraform.AzureNodeGroup{
|
||||
"control_plane_default": {
|
||||
Role: "control-plane",
|
||||
@ -275,9 +272,13 @@ func parseTerraformUpgradeVars(cmd *cobra.Command, conf *config.Config, fetcher
|
||||
},
|
||||
},
|
||||
Location: conf.Provider.Azure.Location,
|
||||
SecureBoot: conf.Provider.Azure.SecureBoot,
|
||||
ImageID: imageRef,
|
||||
CreateMAA: toPtr(conf.GetAttestationConfig().GetVariant().Equal(variant.AzureSEVSNP{})),
|
||||
Debug: toPtr(conf.IsDebugCluster()),
|
||||
ConfidentialVM: toPtr(conf.GetAttestationConfig().GetVariant().Equal(variant.AzureSEVSNP{})),
|
||||
SecureBoot: conf.Provider.Azure.SecureBoot,
|
||||
UserAssignedIdentity: conf.Provider.Azure.UserAssignedIdentity,
|
||||
ResourceGroup: conf.Provider.Azure.ResourceGroup,
|
||||
}
|
||||
return vars, nil
|
||||
case cloudprovider.GCP:
|
||||
|
Loading…
Reference in New Issue
Block a user