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
a29ad353
Unverified
Commit
a29ad353
authored
Aug 23, 2016
by
Tim St. Clair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase the AppArmor pod stop timeout to match the start timeout
parent
8ba1be31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
util.go
test/e2e/framework/util.go
+2
-2
apparmor_test.go
test/e2e_node/apparmor_test.go
+3
-1
No files found.
test/e2e/framework/util.go
View file @
a29ad353
...
...
@@ -1216,10 +1216,10 @@ func waitTimeoutForPodRunningInNamespace(c *client.Client, podName, namespace, r
// Waits default amount of time (podNoLongerRunningTimeout) for the specified pod to stop running.
// Returns an error if timeout occurs first.
func
WaitForPodNoLongerRunningInNamespace
(
c
*
client
.
Client
,
podName
,
namespace
,
resourceVersion
string
)
error
{
return
w
aitTimeoutForPodNoLongerRunningInNamespace
(
c
,
podName
,
namespace
,
resourceVersion
,
podNoLongerRunningTimeout
)
return
W
aitTimeoutForPodNoLongerRunningInNamespace
(
c
,
podName
,
namespace
,
resourceVersion
,
podNoLongerRunningTimeout
)
}
func
w
aitTimeoutForPodNoLongerRunningInNamespace
(
c
*
client
.
Client
,
podName
,
namespace
,
resourceVersion
string
,
timeout
time
.
Duration
)
error
{
func
W
aitTimeoutForPodNoLongerRunningInNamespace
(
c
*
client
.
Client
,
podName
,
namespace
,
resourceVersion
string
,
timeout
time
.
Duration
)
error
{
w
,
err
:=
c
.
Pods
(
namespace
)
.
Watch
(
api
.
SingleObject
(
api
.
ObjectMeta
{
Name
:
podName
,
ResourceVersion
:
resourceVersion
}))
if
err
!=
nil
{
return
err
...
...
test/e2e_node/apparmor_test.go
View file @
a29ad353
...
...
@@ -146,7 +146,9 @@ func loadTestProfiles() error {
func
runAppArmorTest
(
f
*
framework
.
Framework
,
profile
string
)
api
.
PodStatus
{
pod
:=
createPodWithAppArmor
(
f
,
profile
)
framework
.
ExpectNoError
(
f
.
WaitForPodNoLongerRunning
(
pod
.
Name
))
// The pod needs to start before it stops, so wait for the longer start timeout.
framework
.
ExpectNoError
(
framework
.
WaitTimeoutForPodNoLongerRunningInNamespace
(
f
.
Client
,
pod
.
Name
,
f
.
Namespace
.
Name
,
""
,
framework
.
PodStartTimeout
))
p
,
err
:=
f
.
PodClient
()
.
Get
(
pod
.
Name
)
framework
.
ExpectNoError
(
err
)
return
p
.
Status
...
...
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