1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

Merge pull request #4415 from portainer/feat/GH/4011-pods-as-applications

feat(k8s/applications): exposed naked pods as applications
This commit is contained in:
Stéphane Busso 2020-11-23 14:57:04 +13:00 committed by GitHub
commit 3d9c10adf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 107 additions and 42 deletions

View file

@ -18,7 +18,8 @@ export class KubernetesHorizontalPodAutoScalerHelper {
return KubernetesApplicationTypeStrings.DAEMONSET;
} else if ((app instanceof KubernetesApplication && app.ApplicationType === KubernetesApplicationTypes.STATEFULSET) || app instanceof KubernetesStatefulSet) {
return KubernetesApplicationTypeStrings.STATEFULSET;
// } else if () { ---> TODO: refactor - handle bare pod type !
} else if (app instanceof KubernetesApplication && app.ApplicationType === KubernetesApplicationTypes.POD) {
return KubernetesApplicationTypeStrings.POD;
} else {
throw new PortainerError('Unable to determine application type');
}