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
642154a7
Commit
642154a7
authored
Jun 29, 2017
by
Nick Sardo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail on error when deleting ingress
parent
33fc75e2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
ingress_utils.go
test/e2e/framework/ingress_utils.go
+6
-3
ingress.go
test/e2e/ingress.go
+2
-2
ingress.go
test/e2e/upgrades/ingress.go
+1
-1
No files found.
test/e2e/framework/ingress_utils.go
View file @
642154a7
...
@@ -882,9 +882,12 @@ func (j *IngressTestJig) GetRootCA(secretName string) (rootCA []byte) {
...
@@ -882,9 +882,12 @@ func (j *IngressTestJig) GetRootCA(secretName string) (rootCA []byte) {
return
return
}
}
// DeleteIngress deletes the ingress resource
// TryDeleteIngress attempts to delete the ingress resource and logs errors if they occur.
func
(
j
*
IngressTestJig
)
DeleteIngress
()
{
func
(
j
*
IngressTestJig
)
TryDeleteIngress
()
{
ExpectNoError
(
j
.
Client
.
Extensions
()
.
Ingresses
(
j
.
Ingress
.
Namespace
)
.
Delete
(
j
.
Ingress
.
Name
,
nil
))
err
:=
j
.
Client
.
Extensions
()
.
Ingresses
(
j
.
Ingress
.
Namespace
)
.
Delete
(
j
.
Ingress
.
Name
,
nil
)
if
err
!=
nil
{
Logf
(
"Error while deleting the ingress %v/%v: %v"
,
j
.
Ingress
.
Namespace
,
j
.
Ingress
.
Name
,
err
)
}
}
}
// WaitForIngress waits till the ingress acquires an IP, then waits for its
// WaitForIngress waits till the ingress acquires an IP, then waits for its
...
...
test/e2e/ingress.go
View file @
642154a7
...
@@ -89,7 +89,7 @@ var _ = framework.KubeDescribe("Loadbalancing: L7", func() {
...
@@ -89,7 +89,7 @@ var _ = framework.KubeDescribe("Loadbalancing: L7", func() {
return
return
}
}
By
(
"Deleting ingress"
)
By
(
"Deleting ingress"
)
jig
.
DeleteIngress
()
jig
.
Try
DeleteIngress
()
By
(
"Cleaning up cloud resources"
)
By
(
"Cleaning up cloud resources"
)
framework
.
CleanupGCEIngressController
(
gceController
)
framework
.
CleanupGCEIngressController
(
gceController
)
...
@@ -179,7 +179,7 @@ var _ = framework.KubeDescribe("Loadbalancing: L7", func() {
...
@@ -179,7 +179,7 @@ var _ = framework.KubeDescribe("Loadbalancing: L7", func() {
return
return
}
}
By
(
"Deleting ingress"
)
By
(
"Deleting ingress"
)
jig
.
DeleteIngress
()
jig
.
Try
DeleteIngress
()
})
})
It
(
"should conform to Ingress spec"
,
func
()
{
It
(
"should conform to Ingress spec"
,
func
()
{
...
...
test/e2e/upgrades/ingress.go
View file @
642154a7
...
@@ -101,7 +101,7 @@ func (t *IngressUpgradeTest) Teardown(f *framework.Framework) {
...
@@ -101,7 +101,7 @@ func (t *IngressUpgradeTest) Teardown(f *framework.Framework) {
}
}
if
t
.
jig
.
Ingress
!=
nil
{
if
t
.
jig
.
Ingress
!=
nil
{
By
(
"Deleting ingress"
)
By
(
"Deleting ingress"
)
t
.
jig
.
DeleteIngress
()
t
.
jig
.
Try
DeleteIngress
()
}
else
{
}
else
{
By
(
"No ingress created, no cleanup necessary"
)
By
(
"No ingress created, no cleanup necessary"
)
}
}
...
...
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