Merge pull request #10345 from olemarkus/gp3

Allow using gp3 for root volumes
This commit is contained in:
Kubernetes Prow Robot 2020-12-02 03:26:50 -08:00 committed by GitHub
commit 3f6e6e205b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {
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

View File

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