mirror of https://github.com/k3s-io/k3s
Simplify kubeadm bump version on TestEtcdSupportedVersion
parent
28ac3063da
commit
cd605e7d14
|
@ -160,18 +160,13 @@ func TestEtcdSupportedVersion(t *testing.T) {
|
|||
expectedError: errors.New("Unsupported or unknown Kubernetes version(1.99.0)"),
|
||||
},
|
||||
{
|
||||
kubernetesVersion: "1.12.1",
|
||||
expectedVersion: version.MustParseSemantic("3.2.24"),
|
||||
kubernetesVersion: MinimumControlPlaneVersion.WithPatch(1).String(),
|
||||
expectedVersion: version.MustParseSemantic(SupportedEtcdVersion[uint8(MinimumControlPlaneVersion.Minor())]),
|
||||
expectedError: nil,
|
||||
},
|
||||
{
|
||||
kubernetesVersion: "1.13.1",
|
||||
expectedVersion: version.MustParseSemantic("3.2.24"),
|
||||
expectedError: nil,
|
||||
},
|
||||
{
|
||||
kubernetesVersion: "1.14.0",
|
||||
expectedVersion: version.MustParseSemantic("3.3.10"),
|
||||
kubernetesVersion: CurrentKubernetesVersion.String(),
|
||||
expectedVersion: version.MustParseSemantic(SupportedEtcdVersion[uint8(CurrentKubernetesVersion.Minor())]),
|
||||
expectedError: nil,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue