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
367cc425
Commit
367cc425
authored
Aug 31, 2016
by
derekwaynecarr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E framework ignores whitelisted resources when verifying namespace deletion
parent
83cc808f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
util.go
test/e2e/framework/util.go
+8
-0
No files found.
test/e2e/framework/util.go
View file @
367cc425
...
@@ -1168,6 +1168,9 @@ func hasRemainingContent(c *client.Client, clientPool dynamic.ClientPool, namesp
...
@@ -1168,6 +1168,9 @@ func hasRemainingContent(c *client.Client, clientPool dynamic.ClientPool, namesp
return
false
,
err
return
false
,
err
}
}
// TODO: temporary hack for https://github.com/kubernetes/kubernetes/issues/31798
ignoredResources
:=
sets
.
NewString
(
"bindings"
)
contentRemaining
:=
false
contentRemaining
:=
false
// dump how many of resource type is on the server in a log.
// dump how many of resource type is on the server in a log.
...
@@ -1181,6 +1184,11 @@ func hasRemainingContent(c *client.Client, clientPool dynamic.ClientPool, namesp
...
@@ -1181,6 +1184,11 @@ func hasRemainingContent(c *client.Client, clientPool dynamic.ClientPool, namesp
}
}
// get the api resource
// get the api resource
apiResource
:=
unversioned
.
APIResource
{
Name
:
gvr
.
Resource
,
Namespaced
:
true
}
apiResource
:=
unversioned
.
APIResource
{
Name
:
gvr
.
Resource
,
Namespaced
:
true
}
// TODO: temporary hack for https://github.com/kubernetes/kubernetes/issues/31798
if
ignoredResources
.
Has
(
apiResource
.
Name
)
{
Logf
(
"namespace: %s, resource: %s, ignored listing per whitelist"
,
namespace
,
apiResource
.
Name
)
continue
}
obj
,
err
:=
dynamicClient
.
Resource
(
&
apiResource
,
namespace
)
.
List
(
&
v1
.
ListOptions
{})
obj
,
err
:=
dynamicClient
.
Resource
(
&
apiResource
,
namespace
)
.
List
(
&
v1
.
ListOptions
{})
if
err
!=
nil
{
if
err
!=
nil
{
// not all resources support list, so we ignore those
// not all resources support list, so we ignore those
...
...
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