Wait for resources

mine
Raphaël Pinson 2020-12-09 23:54:34 +01:00
parent 7f18ce7031
commit 1e22843012
No known key found for this signature in database
GPG Key ID: A1AAC49E10CB2A8D
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ func (a *Application) Render(ctx context.Context, ns string, o interface{}) erro
gvr := gvkToGvr(res.GroupVersionKind())
switch gvr.String() {
case "apps/v1/deployments":
d, err := f.Get("apps/v1/deployments", fmt.Sprintf("%s/%s", res.Namespace, res.Name), false, labels.Everything())
d, err := f.Get("apps/v1/deployments", fmt.Sprintf("%s/%s", res.Namespace, res.Name), true, labels.Everything())
if err != nil {
return err
}
@ -60,7 +60,7 @@ func (a *Application) Render(ctx context.Context, ns string, o interface{}) erro
}
case "v1/services":
d, err := f.Get("v1/services", fmt.Sprintf("%s/%s", res.Namespace, res.Name), false, labels.Everything())
d, err := f.Get("v1/services", fmt.Sprintf("%s/%s", res.Namespace, res.Name), true, labels.Everything())
if err != nil {
return err
}