mirror of
https://github.com/portainer/portainer.git
synced 2025-07-29 18:29:44 +02:00
fix(k8s/application): ability to remove naked pods (#4598)
This commit is contained in:
parent
342a0d6d22
commit
f8b226a1ef
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ class KubernetesApplicationService {
|
||||||
apiService = this.KubernetesDaemonSetService;
|
apiService = this.KubernetesDaemonSetService;
|
||||||
} else if (app instanceof KubernetesStatefulSet || (app instanceof KubernetesApplication && app.ApplicationType === KubernetesApplicationTypes.STATEFULSET)) {
|
} else if (app instanceof KubernetesStatefulSet || (app instanceof KubernetesApplication && app.ApplicationType === KubernetesApplicationTypes.STATEFULSET)) {
|
||||||
apiService = this.KubernetesStatefulSetService;
|
apiService = this.KubernetesStatefulSetService;
|
||||||
|
} else if (app instanceof KubernetesApplication && app.ApplicationType === KubernetesApplicationTypes.POD) {
|
||||||
|
apiService = this.KubernetesPodService;
|
||||||
} else {
|
} else {
|
||||||
throw new PortainerError('Unable to determine which association to use to retrieve API Service');
|
throw new PortainerError('Unable to determine which association to use to retrieve API Service');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue