fix if replica count is undefined

This commit is contained in:
biersoeckli
2024-11-10 13:25:14 +00:00
parent b84082981c
commit 971030f26e

View File

@@ -274,6 +274,9 @@ class DeploymentService {
replicas: 1
*/
let status: DeplyomentStatus = 'UNKNOWN';
if (deployment.status?.replicas === undefined) {
return 'SHUTDOWN';
}
if (deployment.status?.replicas === 0) {
status = 'SHUTDOWN';
} else if (deployment.status?.replicas === deployment.status?.readyReplicas) {