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
4f35b31f
Unverified
Commit
4f35b31f
authored
Mar 13, 2017
by
Clayton Coleman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try speeding up ConfigMap e2e namespace deletion
parent
fcab3a44
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
configmap.go
test/e2e/common/configmap.go
+6
-2
docker_containers.go
test/e2e/common/docker_containers.go
+3
-1
runners.go
test/utils/runners.go
+4
-2
No files found.
test/e2e/common/configmap.go
View file @
4f35b31f
...
@@ -539,6 +539,7 @@ func doConfigMapE2EWithoutMappings(f *framework.Framework, uid, fsGroup int64, d
...
@@ -539,6 +539,7 @@ func doConfigMapE2EWithoutMappings(f *framework.Framework, uid, fsGroup int64, d
framework
.
Failf
(
"unable to create test configMap %s: %v"
,
configMap
.
Name
,
err
)
framework
.
Failf
(
"unable to create test configMap %s: %v"
,
configMap
.
Name
,
err
)
}
}
one
:=
int64
(
1
)
pod
:=
&
v1
.
Pod
{
pod
:=
&
v1
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
"pod-configmaps-"
+
string
(
uuid
.
NewUUID
()),
Name
:
"pod-configmaps-"
+
string
(
uuid
.
NewUUID
()),
...
@@ -572,7 +573,8 @@ func doConfigMapE2EWithoutMappings(f *framework.Framework, uid, fsGroup int64, d
...
@@ -572,7 +573,8 @@ func doConfigMapE2EWithoutMappings(f *framework.Framework, uid, fsGroup int64, d
},
},
},
},
},
},
RestartPolicy
:
v1
.
RestartPolicyNever
,
RestartPolicy
:
v1
.
RestartPolicyNever
,
TerminationGracePeriodSeconds
:
&
one
,
},
},
}
}
...
@@ -617,6 +619,7 @@ func doConfigMapE2EWithMappings(f *framework.Framework, uid, fsGroup int64, item
...
@@ -617,6 +619,7 @@ func doConfigMapE2EWithMappings(f *framework.Framework, uid, fsGroup int64, item
framework
.
Failf
(
"unable to create test configMap %s: %v"
,
configMap
.
Name
,
err
)
framework
.
Failf
(
"unable to create test configMap %s: %v"
,
configMap
.
Name
,
err
)
}
}
one
:=
int64
(
1
)
pod
:=
&
v1
.
Pod
{
pod
:=
&
v1
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
"pod-configmaps-"
+
string
(
uuid
.
NewUUID
()),
Name
:
"pod-configmaps-"
+
string
(
uuid
.
NewUUID
()),
...
@@ -656,7 +659,8 @@ func doConfigMapE2EWithMappings(f *framework.Framework, uid, fsGroup int64, item
...
@@ -656,7 +659,8 @@ func doConfigMapE2EWithMappings(f *framework.Framework, uid, fsGroup int64, item
},
},
},
},
},
},
RestartPolicy
:
v1
.
RestartPolicyNever
,
RestartPolicy
:
v1
.
RestartPolicyNever
,
TerminationGracePeriodSeconds
:
&
one
,
},
},
}
}
...
...
test/e2e/common/docker_containers.go
View file @
4f35b31f
...
@@ -71,6 +71,7 @@ const testContainerName = "test-container"
...
@@ -71,6 +71,7 @@ const testContainerName = "test-container"
func
entrypointTestPod
()
*
v1
.
Pod
{
func
entrypointTestPod
()
*
v1
.
Pod
{
podName
:=
"client-containers-"
+
string
(
uuid
.
NewUUID
())
podName
:=
"client-containers-"
+
string
(
uuid
.
NewUUID
())
one
:=
int64
(
1
)
return
&
v1
.
Pod
{
return
&
v1
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
podName
,
Name
:
podName
,
...
@@ -82,7 +83,8 @@ func entrypointTestPod() *v1.Pod {
...
@@ -82,7 +83,8 @@ func entrypointTestPod() *v1.Pod {
Image
:
"gcr.io/google_containers/eptest:0.1"
,
Image
:
"gcr.io/google_containers/eptest:0.1"
,
},
},
},
},
RestartPolicy
:
v1
.
RestartPolicyNever
,
RestartPolicy
:
v1
.
RestartPolicyNever
,
TerminationGracePeriodSeconds
:
&
one
,
},
},
}
}
}
}
test/utils/runners.go
View file @
4f35b31f
...
@@ -494,6 +494,7 @@ func (config *RCConfig) create() error {
...
@@ -494,6 +494,7 @@ func (config *RCConfig) create() error {
if
config
.
DNSPolicy
==
nil
{
if
config
.
DNSPolicy
==
nil
{
config
.
DNSPolicy
=
&
dnsDefault
config
.
DNSPolicy
=
&
dnsDefault
}
}
one
:=
int64
(
1
)
rc
:=
&
v1
.
ReplicationController
{
rc
:=
&
v1
.
ReplicationController
{
ObjectMeta
:
metav1
.
ObjectMeta
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
config
.
Name
,
Name
:
config
.
Name
,
...
@@ -517,8 +518,9 @@ func (config *RCConfig) create() error {
...
@@ -517,8 +518,9 @@ func (config *RCConfig) create() error {
ReadinessProbe
:
config
.
ReadinessProbe
,
ReadinessProbe
:
config
.
ReadinessProbe
,
},
},
},
},
DNSPolicy
:
*
config
.
DNSPolicy
,
DNSPolicy
:
*
config
.
DNSPolicy
,
NodeSelector
:
config
.
NodeSelector
,
NodeSelector
:
config
.
NodeSelector
,
TerminationGracePeriodSeconds
:
&
one
,
},
},
},
},
},
},
...
...
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