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
c4b14e0e
Commit
c4b14e0e
authored
Apr 04, 2017
by
Jeff Vance
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rebase-1
parent
a192edd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
37 deletions
+2
-37
pv_util.go
test/e2e/framework/pv_util.go
+1
-24
kubelet.go
test/e2e/kubelet.go
+1
-13
No files found.
test/e2e/framework/pv_util.go
View file @
c4b14e0e
...
@@ -421,25 +421,6 @@ func DeletePodWithWait(f *Framework, c clientset.Interface, pod *v1.Pod) {
...
@@ -421,25 +421,6 @@ func DeletePodWithWait(f *Framework, c clientset.Interface, pod *v1.Pod) {
Logf
(
"Pod %q successfully deleted"
,
pod
.
Name
)
Logf
(
"Pod %q successfully deleted"
,
pod
.
Name
)
}
}
// Create the test pod, wait for success, and then delete the pod.
func
CreateWaitAndDeletePod
(
f
*
Framework
,
c
clientset
.
Interface
,
ns
string
,
claimName
string
)
{
Logf
(
"Creating nfs test pod"
)
// Make pod spec
pod
:=
MakeWritePod
(
ns
,
claimName
)
// Instantiate pod (Create)
runPod
,
err
:=
c
.
CoreV1
()
.
Pods
(
ns
)
.
Create
(
pod
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
runPod
)
.
NotTo
(
BeNil
())
defer
DeletePodWithWait
(
f
,
c
,
runPod
)
// Wait for the test pod to complete its lifecycle
testPodSuccessOrFail
(
c
,
ns
,
runPod
)
}
// Sanity check for GCE testing. Verify the persistent disk attached to the node.
// Sanity check for GCE testing. Verify the persistent disk attached to the node.
func
VerifyGCEDiskAttached
(
diskName
string
,
nodeName
types
.
NodeName
)
bool
{
func
VerifyGCEDiskAttached
(
diskName
string
,
nodeName
types
.
NodeName
)
bool
{
gceCloud
,
err
:=
GetGCECloud
()
gceCloud
,
err
:=
GetGCECloud
()
...
@@ -634,17 +615,13 @@ func deletePD(pdName string) error {
...
@@ -634,17 +615,13 @@ func deletePD(pdName string) error {
}
}
}
}
// Create the test pod, wait for
(hopefully)
success, and then delete the pod.
// Create the test pod, wait for success, and then delete the pod.
func
CreateWaitAndDeletePod
(
f
*
Framework
,
c
clientset
.
Interface
,
ns
string
,
pvc
*
v1
.
PersistentVolumeClaim
)
{
func
CreateWaitAndDeletePod
(
f
*
Framework
,
c
clientset
.
Interface
,
ns
string
,
pvc
*
v1
.
PersistentVolumeClaim
)
{
Logf
(
"Creating nfs test pod"
)
Logf
(
"Creating nfs test pod"
)
// Make pod spec
pod
:=
MakeWritePod
(
ns
,
pvc
)
pod
:=
MakeWritePod
(
ns
,
pvc
)
// Instantiate pod (Create)
runPod
,
err
:=
c
.
CoreV1
()
.
Pods
(
ns
)
.
Create
(
pod
)
runPod
,
err
:=
c
.
CoreV1
()
.
Pods
(
ns
)
.
Create
(
pod
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
runPod
)
.
NotTo
(
BeNil
())
Expect
(
runPod
)
.
NotTo
(
BeNil
())
defer
DeletePodWithWait
(
f
,
c
,
runPod
)
defer
DeletePodWithWait
(
f
,
c
,
runPod
)
// Wait for the test pod to complete its lifecycle
// Wait for the test pod to complete its lifecycle
...
...
test/e2e/kubelet.go
View file @
c4b14e0e
...
@@ -453,25 +453,13 @@ var _ = framework.KubeDescribe("kubelet", func() {
...
@@ -453,25 +453,13 @@ var _ = framework.KubeDescribe("kubelet", func() {
}
}
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
<<<<<<<
HEAD
framework
.
SkipUnlessProviderIs
(
framework
.
ProvidersWithSSH
...
)
NFSconfig
=
framework
.
VolumeTestConfig
{
NFSconfig
=
framework
.
VolumeTestConfig
{
Namespace
:
ns
,
Namespace
:
ns
,
Prefix
:
"nfs"
,
Prefix
:
"nfs"
,
ServerImage
:
framework
.
NfsServerImage
,
ServerImage
:
framework
.
NfsServerImage
,
ServerPorts
:
[]
int
{
2049
},
ServerPorts
:
[]
int
{
2049
},
ServerArgs
:
[]
string
{
"-G"
,
"777"
,
"/exports"
},
ServerArgs
:
[]
string
{
"-G"
,
"777"
,
"/exports"
},
=======
framework
.
SkipUnlessProviderIs
(
framework
.
ProvidersWithSSH
...
)
// TODO: delete after pr #33447 is merged
framework
.
SkipIfProviderIs
(
"gke"
)
NFSconfig
=
VolumeTestConfig
{
namespace
:
ns
,
prefix
:
"nfs"
,
serverImage
:
NfsServerImage
,
serverPorts
:
[]
int
{
2049
},
serverArgs
:
[]
string
{
"-G"
,
"777"
,
"/exports"
},
>>>>>>>
add
disruptive
tests
to
verify
host
clean
up
.
Issues
:
#
31272
,
#
37657.
}
}
nfsServerPod
,
nfsIP
=
createNfsServerPod
(
c
,
NFSconfig
)
nfsServerPod
,
nfsIP
=
createNfsServerPod
(
c
,
NFSconfig
)
})
})
...
...
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