mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-01-02 01:30:38 -06: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