Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
1105 Внедрение механизмов обеспечения безопасности цепочки поставки программных проектов
Legacy
scanned-projects
helm
Commits
db39e092
Unverified
Commit
db39e092
authored
7 years ago
by
Paolo Mainardi
Committed by
Matthew Fisher
7 years ago
Browse files
Options
Download
Patches
Plain Diff
adding other missing apiVersions
(cherry picked from commit
b065ffe1
)
parent
e3a8b807
release-2.8
v2.8.2
v2.8.2-rc1
v2.8.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/kube/wait.go
+24
-0
pkg/kube/wait.go
with
24 additions
and
0 deletions
+24
-0
pkg/kube/wait.go
+
24
−
0
View file @
db39e092
...
...
@@ -139,6 +139,18 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
return
false
,
err
}
pods
=
append
(
pods
,
list
...
)
case
*
appsv1
.
DaemonSet
:
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
return
false
,
err
}
pods
=
append
(
pods
,
list
...
)
case
*
appsv1beta2
.
DaemonSet
:
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
return
false
,
err
}
pods
=
append
(
pods
,
list
...
)
case
*
appsv1
.
StatefulSet
:
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
...
...
@@ -163,6 +175,18 @@ func (c *Client) waitForResources(timeout time.Duration, created Result) error {
return
false
,
err
}
pods
=
append
(
pods
,
list
...
)
case
*
appsv1beta2
.
ReplicaSet
:
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
return
false
,
err
}
pods
=
append
(
pods
,
list
...
)
case
*
appsv1
.
ReplicaSet
:
list
,
err
:=
getPods
(
kcs
,
value
.
Namespace
,
value
.
Spec
.
Selector
.
MatchLabels
)
if
err
!=
nil
{
return
false
,
err
}
pods
=
append
(
pods
,
list
...
)
case
*
v1
.
PersistentVolumeClaim
:
claim
,
err
:=
kcs
.
CoreV1
()
.
PersistentVolumeClaims
(
value
.
Namespace
)
.
Get
(
value
.
Name
,
metav1
.
GetOptions
{})
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets