mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +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)"),
|
expectedError: errors.New("Unsupported or unknown Kubernetes version(1.99.0)"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
kubernetesVersion: "1.12.1",
|
kubernetesVersion: MinimumControlPlaneVersion.WithPatch(1).String(),
|
||||||
expectedVersion: version.MustParseSemantic("3.2.24"),
|
expectedVersion: version.MustParseSemantic(SupportedEtcdVersion[uint8(MinimumControlPlaneVersion.Minor())]),
|
||||||
expectedError: nil,
|
expectedError: nil,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
kubernetesVersion: "1.13.1",
|
kubernetesVersion: CurrentKubernetesVersion.String(),
|
||||||
expectedVersion: version.MustParseSemantic("3.2.24"),
|
expectedVersion: version.MustParseSemantic(SupportedEtcdVersion[uint8(CurrentKubernetesVersion.Minor())]),
|
||||||
expectedError: nil,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
kubernetesVersion: "1.14.0",
|
|
||||||
expectedVersion: version.MustParseSemantic("3.3.10"),
|
|
||||||
expectedError: nil,
|
expectedError: nil,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user