From f8b226a1ef90ce94ffb725cea1731e8caf5f9491 Mon Sep 17 00:00:00 2001 From: xAt0mZ Date: Thu, 17 Dec 2020 01:05:31 +0100 Subject: [PATCH] fix(k8s/application): ability to remove naked pods (#4598) --- app/kubernetes/services/applicationService.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/kubernetes/services/applicationService.js b/app/kubernetes/services/applicationService.js index 075adb91f..c204e918f 100644 --- a/app/kubernetes/services/applicationService.js +++ b/app/kubernetes/services/applicationService.js @@ -71,6 +71,8 @@ class KubernetesApplicationService { apiService = this.KubernetesDaemonSetService; } else if (app instanceof KubernetesStatefulSet || (app instanceof KubernetesApplication && app.ApplicationType === KubernetesApplicationTypes.STATEFULSET)) { apiService = this.KubernetesStatefulSetService; + } else if (app instanceof KubernetesApplication && app.ApplicationType === KubernetesApplicationTypes.POD) { + apiService = this.KubernetesPodService; } else { throw new PortainerError('Unable to determine which association to use to retrieve API Service'); }