mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-05-14 22:08:55 -05:00
fix if replica count is undefined
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user