ソースを参照

Merge pull request #2653 from porter-dev/CUS-61/wait-flag

CUS-61 Wait flag race
jusrhee 3 年 前
コミット
e8fe8b9d63
1 ファイル変更6 行追加0 行削除
  1. 6 0
      cli/cmd/deploy.go

+ 6 - 0
cli/cmd/deploy.go

@@ -491,6 +491,9 @@ func updateFull(_ *types.GetAuthenticatedUserResponse, client *api.Client, args
 	}
 
 	if waitForSuccessfulDeploy {
+		// solves timing issue where replicasets were not on the cluster, before our initial check
+		time.Sleep(10 * time.Second)
+
 		err := checkDeploymentStatus(client)
 
 		if err != nil {
@@ -613,6 +616,9 @@ func updateUpgrade(_ *types.GetAuthenticatedUserResponse, client *api.Client, ar
 	}
 
 	if waitForSuccessfulDeploy {
+		// solves timing issue where replicasets were not on the cluster, before our initial check
+		time.Sleep(10 * time.Second)
+
 		err := checkDeploymentStatus(client)
 
 		if err != nil {