From 7b26656305f053d97f4ad82cb79afe98ee2775dd Mon Sep 17 00:00:00 2001 From: Isaac Hollander McCreery Date: Wed, 17 Feb 2016 13:36:24 -0800 Subject: [PATCH] Skip Kubectl deployment test on clusters older that v1.2.0-alpha.7.726 --- test/e2e/kubectl.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/e2e/kubectl.go b/test/e2e/kubectl.go index bf124039dc34b..a24a4cb3f408f 100644 --- a/test/e2e/kubectl.go +++ b/test/e2e/kubectl.go @@ -94,6 +94,12 @@ var ( // // TODO(ihmccreery): remove once we don't care about v1.0 anymore, (tentatively in v1.3). jobsVersion = version.MustParse("v1.1.0") + + // Deployments were introduced by default in v1.2, so we don't expect tests that rely on + // deployments to work on clusters before that. + // + // TODO(ihmccreery): remove once we don't care about v1.1 anymore, (tentatively in v1.4). + deploymentsVersion = version.MustParse("v1.2.0-alpha.7.726") ) var _ = Describe("Kubectl client", func() { @@ -910,6 +916,8 @@ var _ = Describe("Kubectl client", func() { }) It("should create a deployment from an image [Conformance]", func() { + SkipUnlessServerVersionGTE(deploymentsVersion, c) + image := "nginx" By("running the image " + image)