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
e4983005
Unverified
Commit
e4983005
authored
Jul 05, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Jul 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #79778 from cpanato/GH-79740
[Failing tests] skip test if the server does not serve extensions/v1beta1 since this is deprecated
parents
938fc195
0fd56321
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
deployment.go
test/e2e/apps/deployment.go
+7
-0
No files found.
test/e2e/apps/deployment.go
View file @
e4983005
...
...
@@ -31,6 +31,7 @@ import (
"k8s.io/apimachinery/pkg/api/errors"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/apimachinery/pkg/runtime/schema"
"k8s.io/apimachinery/pkg/types"
"k8s.io/apimachinery/pkg/util/intstr"
"k8s.io/apimachinery/pkg/util/wait"
...
...
@@ -53,6 +54,9 @@ const (
var
(
nilRs
*
apps
.
ReplicaSet
// DeploymentGroupVersionResource identifies a Deployment resource.
DeploymentGroupVersionResource
=
schema
.
GroupVersionResource
{
Group
:
extensions
.
GroupName
,
Version
:
"v1beta1"
,
Resource
:
"deployments"
}
)
var
_
=
SIGDescribe
(
"Deployment"
,
func
()
{
...
...
@@ -509,6 +513,9 @@ func ensureReplicas(rs *apps.ReplicaSet, replicas int32) {
// Then rollback the deployment to revision 10 (doesn't exist in history) should fail.
// Finally, rollback current deployment (revision 4) to revision 4 should be no-op.
func
testRollbackDeployment
(
f
*
framework
.
Framework
)
{
// extensions/v1beta1 is deprecated, only testing if the server serves this api
framework
.
SkipIfMissingResource
(
f
.
DynamicClient
,
DeploymentGroupVersionResource
,
f
.
Namespace
.
Name
)
ns
:=
f
.
Namespace
.
Name
c
:=
f
.
ClientSet
podName
:=
"nginx"
...
...
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