Fix Arc Postgres refresh (#11074)

This commit is contained in:
Brian Bergeron
2020-06-24 11:14:45 -07:00
committed by GitHub
parent 00836e1890
commit 6f6bf3f3b3
6 changed files with 192 additions and 82 deletions

View File

@@ -172,10 +172,10 @@ export class PostgresModel extends ResourceModel {
}
/** Given a V1Pod returns its status */
public static getPodStatus(pod: V1Pod) {
public static getPodStatus(pod: V1Pod): string {
const phase = pod.status?.phase;
if (phase !== 'Running') {
return phase;
return phase ?? '';
}
// Pods can be in the running phase while some