Alloq using gp3 for root volumes

This commit is contained in:
Ole Markus With 2020-12-02 11:46:54 +01:00
parent dc1c2210cf
commit a42891db25
2 changed files with 4 additions and 1 deletions

View File

@ -196,7 +196,7 @@ func CrossValidateInstanceGroup(g *kops.InstanceGroup, cluster *kops.Cluster, cl
} }
if g.Spec.RootVolumeType != nil && kops.CloudProviderID(cluster.Spec.CloudProvider) == kops.CloudProviderAWS { if g.Spec.RootVolumeType != nil && kops.CloudProviderID(cluster.Spec.CloudProvider) == kops.CloudProviderAWS {
allErrs = append(allErrs, IsValidValue(field.NewPath("spec", "rootVolumeType"), g.Spec.RootVolumeType, []string{"standard", "gp2", "io1", "io2"})...) allErrs = append(allErrs, IsValidValue(field.NewPath("spec", "rootVolumeType"), g.Spec.RootVolumeType, []string{"standard", "gp3", "gp2", "io1", "io2"})...)
} }
return allErrs return allErrs

View File

@ -196,6 +196,9 @@ func TestValidBootDevice(t *testing.T) {
{ {
volumeType: "standard", volumeType: "standard",
}, },
{
volumeType: "gp3",
},
{ {
volumeType: "gp2", volumeType: "gp2",
}, },