This is an automated email from the ASF dual-hosted git repository. nferraro pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push: new 183072c fix(GC): Skip 503 errors when scanning for resources to be GCed 183072c is described below commit 183072c015abc7dfadb594d3690fa9c1ee94d63f Author: Antonin Stefanutti <anto...@stefanutti.fr> AuthorDate: Thu Jul 25 10:02:55 2019 +0200 fix(GC): Skip 503 errors when scanning for resources to be GCed --- pkg/util/kubernetes/util.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/util/kubernetes/util.go b/pkg/util/kubernetes/util.go index 7b995fb..7e033a0 100644 --- a/pkg/util/kubernetes/util.go +++ b/pkg/util/kubernetes/util.go @@ -259,7 +259,8 @@ func LookUpResources(ctx context.Context, client client.Client, namespace string if err := client.List(ctx, &options, &list); err != nil { if k8serrors.IsNotFound(err) || k8serrors.IsForbidden(err) || - k8serrors.IsMethodNotSupported(err) { + k8serrors.IsMethodNotSupported(err) || + k8serrors.IsServiceUnavailable(err) { continue } return nil, err