Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
3e4c19b3
Unverified
Commit
3e4c19b3
authored
Oct 25, 2019
by
Taylor Thomas
Committed by
GitHub
Oct 25, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6792 from thomastaylor312/fix/ingress_wait
fix(wait): Removes ingress checks
parents
0a9bf4f9
93e4697f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
19 deletions
+2
-19
wait.go
pkg/kube/wait.go
+2
-19
No files found.
pkg/kube/wait.go
View file @
3e4c19b3
...
@@ -22,7 +22,7 @@ import (
...
@@ -22,7 +22,7 @@ import (
appsv1
"k8s.io/api/apps/v1"
appsv1
"k8s.io/api/apps/v1"
appsv1beta1
"k8s.io/api/apps/v1beta1"
appsv1beta1
"k8s.io/api/apps/v1beta1"
appsv1beta2
"k8s.io/api/apps/v1beta2"
appsv1beta2
"k8s.io/api/apps/v1beta2"
"k8s.io/api/core/v1"
v1
"k8s.io/api/core/v1"
extensions
"k8s.io/api/extensions/v1beta1"
extensions
"k8s.io/api/extensions/v1beta1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
metav1
"k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/fields"
"k8s.io/apimachinery/pkg/fields"
...
@@ -52,7 +52,6 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
...
@@ -52,7 +52,6 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
services
:=
[]
v1
.
Service
{}
services
:=
[]
v1
.
Service
{}
pvc
:=
[]
v1
.
PersistentVolumeClaim
{}
pvc
:=
[]
v1
.
PersistentVolumeClaim
{}
deployments
:=
[]
deployment
{}
deployments
:=
[]
deployment
{}
ingresses
:=
[]
extensions
.
Ingress
{}
for
_
,
v
:=
range
created
{
for
_
,
v
:=
range
created
{
switch
value
:=
asVersionedOrUnstructured
(
v
)
.
(
type
)
{
switch
value
:=
asVersionedOrUnstructured
(
v
)
.
(
type
)
{
case
*
v1
.
ReplicationController
:
case
*
v1
.
ReplicationController
:
...
@@ -209,15 +208,9 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
...
@@ -209,15 +208,9 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
return
false
,
err
return
false
,
err
}
}
services
=
append
(
services
,
*
svc
)
services
=
append
(
services
,
*
svc
)
case
*
extensions
.
Ingress
:
ingress
,
err
:=
kcs
.
ExtensionsV1beta1
()
.
Ingresses
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
return
false
,
err
}
ingresses
=
append
(
ingresses
,
*
ingress
)
}
}
}
}
isReady
:=
c
.
podsReady
(
pods
)
&&
c
.
servicesReady
(
services
)
&&
c
.
volumesReady
(
pvc
)
&&
c
.
deploymentsReady
(
deployments
)
&&
c
.
ingressesReady
(
ingresses
)
isReady
:=
c
.
podsReady
(
pods
)
&&
c
.
servicesReady
(
services
)
&&
c
.
volumesReady
(
pvc
)
&&
c
.
deploymentsReady
(
deployments
)
return
isReady
,
nil
return
isReady
,
nil
})
})
}
}
...
@@ -292,13 +285,3 @@ func isPodReady(pod *v1.Pod) bool {
...
@@ -292,13 +285,3 @@ func isPodReady(pod *v1.Pod) bool {
}
}
return
false
return
false
}
}
func
(
c
*
Client
)
ingressesReady
(
ingresses
[]
extensions
.
Ingress
)
bool
{
for
_
,
ingress
:=
range
ingresses
{
if
&
ingress
.
Status
==
nil
||
len
(
ingress
.
Status
.
LoadBalancer
.
Ingress
)
==
0
{
c
.
Log
(
"Ingress is not ready: %s/%s"
,
ingress
.
GetNamespace
(),
ingress
.
GetName
())
return
false
}
}
return
true
}
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