Skip to content

Commit

Permalink
fix(server:start): CRW-483 The 'server:start' command of the 'oc' cli…
Browse files Browse the repository at this point in the history
…ent fails on the OCP 3.11' cluster with state 'Running' / 'Pending' expected

Signed-off-by: Ilya Buziuk <[email protected]>
  • Loading branch information
ibuziuk authored and benoitf committed Nov 18, 2019
1 parent 6d64e67 commit db86008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/kube.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ export class KubeHelper {
podExist = await this.podsExistBySelector(selector, namespace)
if (podExist) {
currentPhase = await this.getPodPhase(selector, namespace)
if (currentPhase === 'Pending') {
if (currentPhase === 'Pending' || currentPhase === 'Running') {
return
} else {
throw new Error(`ERR_UNEXPECTED_PHASE: ${currentPhase} (Pending expected) `)
Expand Down

0 comments on commit db86008

Please sign in to comment.