diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-11-13 15:46:01 +0300 |
---|---|---|
committer | Kamil TrzciĆski <ayufan@ayufan.eu> | 2018-11-13 15:46:01 +0300 |
commit | 14b3033a0d57ba377746896bcc83d1edb9da6f7a (patch) | |
tree | 5a599915abfe4567c42206918a51c81307259acd /app/models/project_services | |
parent | f2ef5e2ee8ae46d324e4136dbc95ea40d1f21841 (diff) |
Show HTTP response code for Kubernetes errors
Diffstat (limited to 'app/models/project_services')
-rw-r--r-- | app/models/project_services/kubernetes_service.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/project_services/kubernetes_service.rb b/app/models/project_services/kubernetes_service.rb index 3459ded7ccf..c52a531e5fe 100644 --- a/app/models/project_services/kubernetes_service.rb +++ b/app/models/project_services/kubernetes_service.rb @@ -203,9 +203,7 @@ class KubernetesService < DeploymentService kubeclient = build_kube_client! kubeclient.get_pods(namespace: actual_namespace).as_json - rescue Kubeclient::HttpError => err - raise err unless err.error_code == 404 - + rescue Kubeclient::ResourceNotFoundError [] end |