mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Merge pull request #76068 from yagonobre/simplify-version-bump
Simplify kubeadm bump version on TestEtcdSupportedVersion
This commit is contained in:
commit
82e15dad1c
@ -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
Block a user