mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-12-09 21:16:52 -05:00
ref: pre v2.15 cleanup (#2871)
This commit is contained in:
parent
3799525103
commit
489e07677e
12 changed files with 35 additions and 215 deletions
|
|
@ -64,14 +64,6 @@ func TerraformIAMUpgradeVars(conf *config.Config, fileHandler file.Handler) (ter
|
|||
if err := terraform.VariablesFromBytes(oldVarBytes, &oldVars); err != nil {
|
||||
return nil, fmt.Errorf("parsing existing IAM workspace: %w", err)
|
||||
}
|
||||
|
||||
// Migration from the "region" to the "location" field na.
|
||||
// TODO(msanft): Remove after v2.14.0 is released.
|
||||
if oldVars.Region != nil && *oldVars.Region != "" && oldVars.Location == "" {
|
||||
oldVars.Location = *oldVars.Region
|
||||
oldVars.Region = nil
|
||||
}
|
||||
|
||||
vars = azureTerraformIAMVars(conf, oldVars)
|
||||
case cloudprovider.GCP:
|
||||
var oldVars terraform.GCPIAMVariables
|
||||
|
|
|
|||
|
|
@ -245,11 +245,8 @@ type AzureNodeGroup struct {
|
|||
|
||||
// AzureIAMVariables is user configuration for creating the IAM configuration with Terraform on Microsoft Azure.
|
||||
type AzureIAMVariables struct {
|
||||
// Region is the Azure location to use. (e.g. westus).
|
||||
// THIS FIELD IS DEPRECATED AND ONLY KEPT FOR MIGRATION PURPOSES. DO NOT USE.
|
||||
Region *string `hcl:"region" cty:"region"` // TODO(msanft): Remove this field once v2.14.0 is released.
|
||||
// Location is the Azure location to use. (e.g. westus)
|
||||
Location string `hcl:"location,optional" cty:"location"` // TODO(msanft): Make this required once v2.14.0 is released.
|
||||
Location string `hcl:"location" cty:"location"`
|
||||
// ServicePrincipal is the name of the service principal to use.
|
||||
ServicePrincipal string `hcl:"service_principal_name" cty:"service_principal_name"`
|
||||
// ResourceGroup is the name of the resource group to use.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue