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
4ab06a69
Unverified
Commit
4ab06a69
authored
Jun 26, 2017
by
Anthony Yeh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip Deployment upgrade test on 1.5 and earlier.
The test relies on implementation details and would need a rewrite to work for older clusters.
parent
4fd040af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
deployments.go
test/e2e/upgrades/deployments.go
+17
-0
No files found.
test/e2e/upgrades/deployments.go
View file @
4ab06a69
...
@@ -22,6 +22,7 @@ import (
...
@@ -22,6 +22,7 @@ import (
extensions
"k8s.io/api/extensions/v1beta1"
extensions
"k8s.io/api/extensions/v1beta1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
deploymentutil
"k8s.io/kubernetes/pkg/controller/deployment/util"
deploymentutil
"k8s.io/kubernetes/pkg/controller/deployment/util"
"k8s.io/kubernetes/pkg/util/version"
"k8s.io/kubernetes/test/e2e/framework"
"k8s.io/kubernetes/test/e2e/framework"
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/ginkgo"
...
@@ -41,6 +42,22 @@ type DeploymentUpgradeTest struct {
...
@@ -41,6 +42,22 @@ type DeploymentUpgradeTest struct {
func
(
DeploymentUpgradeTest
)
Name
()
string
{
return
"deployment-upgrade"
}
func
(
DeploymentUpgradeTest
)
Name
()
string
{
return
"deployment-upgrade"
}
func
(
DeploymentUpgradeTest
)
Skip
(
upgCtx
UpgradeContext
)
bool
{
// The Deployment upgrade test currently relies on implementation details to probe the
// ReplicaSets belonging to a Deployment. As of 1.7, the client code we call into no
// longer supports talking to a server <1.6. (see #47685)
minVersion
:=
version
.
MustParseSemantic
(
"v1.6.0"
)
for
_
,
vCtx
:=
range
upgCtx
.
Versions
{
if
vCtx
.
Version
.
LessThan
(
minVersion
)
{
return
true
}
}
return
false
}
var
_
Skippable
=
DeploymentUpgradeTest
{}
// Setup creates a deployment and makes sure it has a new and an old replica set running.
// Setup creates a deployment and makes sure it has a new and an old replica set running.
// This calls in to client code and should not be expected to work against a cluster more than one minor version away from the current version.
// This calls in to client code and should not be expected to work against a cluster more than one minor version away from the current version.
func
(
t
*
DeploymentUpgradeTest
)
Setup
(
f
*
framework
.
Framework
)
{
func
(
t
*
DeploymentUpgradeTest
)
Setup
(
f
*
framework
.
Framework
)
{
...
...
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