Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
52b061a4
Commit
52b061a4
authored
Mar 15, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #22969 from nikhiljindal/upgradeTest
Auto commit by PR queue bot
parents
8a952748
435a4e82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
kubectl.go
test/e2e/kubectl.go
+18
-1
No files found.
test/e2e/kubectl.go
View file @
52b061a4
...
...
@@ -101,6 +101,12 @@ var (
//
// 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"
)
// Pod probe parameters were introduced in #15967 (v1.2) so we dont expect tests that use
// these probe parameters to work on clusters before that.
//
// TODO(ihmccreery): remove once we don't care about v1.1 anymore, (tentatively in v1.4).
podProbeParametersVersion
=
version
.
MustParse
(
"v1.2.0-alpha.4"
)
)
var
_
=
Describe
(
"Kubectl client"
,
func
()
{
...
...
@@ -271,7 +277,18 @@ var _ = Describe("Kubectl client", func() {
}
// start exec-proxy-tester container
netexecPodPath
:=
filepath
.
Join
(
testContext
.
RepoRoot
,
"test/images/netexec/pod.yaml"
)
runKubectlOrDie
(
"create"
,
"-f"
,
netexecPodPath
,
fmt
.
Sprintf
(
"--namespace=%v"
,
ns
))
// Add "validate=false" if the server version is less than 1.2.
// More details: https://github.com/kubernetes/kubernetes/issues/22884.
validateFlag
:=
"--validate=true"
gte
,
err
:=
serverVersionGTE
(
podProbeParametersVersion
,
c
)
if
err
!=
nil
{
Failf
(
"Failed to get server version: %v"
,
err
)
}
if
!
gte
{
validateFlag
=
"--validate=false"
}
runKubectlOrDie
(
"create"
,
"-f"
,
netexecPodPath
,
fmt
.
Sprintf
(
"--namespace=%v"
,
ns
),
validateFlag
)
checkPodsRunningReady
(
c
,
ns
,
[]
string
{
netexecContainer
},
podStartTimeout
)
// Clean up
defer
cleanup
(
netexecPodPath
,
ns
,
netexecPodSelector
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment