From dc50cc28db553f6edf54186a192cd9d27c04dbc1 Mon Sep 17 00:00:00 2001 From: Dmitriy Kalinin Date: Thu, 23 Jan 2020 22:18:48 -0500 Subject: [PATCH] do not retry discovery failed groups error --- pkg/kapp/resources/resource_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kapp/resources/resource_types.go b/pkg/kapp/resources/resource_types.go index e3686d24d..c44b668c3 100644 --- a/pkg/kapp/resources/resource_types.go +++ b/pkg/kapp/resources/resource_types.go @@ -105,7 +105,7 @@ func (g *ResourceTypesImpl) serverResources() ([]*metav1.APIResourceList, error) if len(serverResources) > 0 && g.opts.IgnoreFailingAPIServices { return serverResources, nil } - lastErr = fmt.Errorf("%s (possibly related issue: https://github.com/k14s/kapp/issues/12)", lastErr) + return nil, fmt.Errorf("%s (possibly related issue: https://github.com/k14s/kapp/issues/12)", lastErr) } time.Sleep(1 * time.Second) }