mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-05 07:45:27 -04:00
terraform: instance_count => initial_count (#1989)
Normalize naming for the "instance_count" / "initial_count" int terraform to always use "initial_count". This is required, since there is a naming confusion on AWS. "initial_count" is more precise, since it reflects the fact that this value is ignored when applying the terraform template after the scaling groups already exist.
This commit is contained in:
parent
00ee11084e
commit
5f8ea1348a
19 changed files with 82 additions and 82 deletions
|
@ -171,11 +171,11 @@ func TestAzureClusterVariables(t *testing.T) {
|
|||
Name: "cluster-name",
|
||||
NodeGroups: map[string]AzureNodeGroup{
|
||||
"control_plane_default": {
|
||||
Role: "ControlPlane",
|
||||
InstanceCount: to.Ptr(1),
|
||||
InstanceType: "Standard_D2s_v3",
|
||||
DiskType: "StandardSSD_LRS",
|
||||
DiskSizeGB: 100,
|
||||
Role: "ControlPlane",
|
||||
InitialCount: to.Ptr(1),
|
||||
InstanceType: "Standard_D2s_v3",
|
||||
DiskType: "StandardSSD_LRS",
|
||||
DiskSizeGB: 100,
|
||||
},
|
||||
},
|
||||
ConfidentialVM: to.Ptr(true),
|
||||
|
@ -198,12 +198,12 @@ user_assigned_identity = "my-user-assigned-identity"
|
|||
confidential_vm = true
|
||||
node_groups = {
|
||||
control_plane_default = {
|
||||
disk_size = 100
|
||||
disk_type = "StandardSSD_LRS"
|
||||
instance_count = 1
|
||||
instance_type = "Standard_D2s_v3"
|
||||
role = "ControlPlane"
|
||||
zones = null
|
||||
disk_size = 100
|
||||
disk_type = "StandardSSD_LRS"
|
||||
initial_count = 1
|
||||
instance_type = "Standard_D2s_v3"
|
||||
role = "ControlPlane"
|
||||
zones = null
|
||||
}
|
||||
}
|
||||
`
|
||||
|
@ -274,11 +274,11 @@ func TestQEMUClusterVariables(t *testing.T) {
|
|||
Name: "cluster-name",
|
||||
NodeGroups: map[string]QEMUNodeGroup{
|
||||
"control-plane": {
|
||||
Role: role.ControlPlane.TFString(),
|
||||
InstanceCount: 1,
|
||||
DiskSize: 30,
|
||||
CPUCount: 4,
|
||||
MemorySize: 8192,
|
||||
Role: role.ControlPlane.TFString(),
|
||||
InitialCount: 1,
|
||||
DiskSize: 30,
|
||||
CPUCount: 4,
|
||||
MemorySize: 8192,
|
||||
},
|
||||
},
|
||||
Machine: "q35",
|
||||
|
@ -298,11 +298,11 @@ func TestQEMUClusterVariables(t *testing.T) {
|
|||
want := `name = "cluster-name"
|
||||
node_groups = {
|
||||
control-plane = {
|
||||
disk_size = 30
|
||||
instance_count = 1
|
||||
memory = 8192
|
||||
role = "control-plane"
|
||||
vcpus = 4
|
||||
disk_size = 30
|
||||
initial_count = 1
|
||||
memory = 8192
|
||||
role = "control-plane"
|
||||
vcpus = 4
|
||||
}
|
||||
}
|
||||
machine = "q35"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue