Explorar o código

add hardcoded wait to the wait flag

Stefan McShane %!s(int64=3) %!d(string=hai) anos
pai
achega
1c051b5b32
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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 {
 	if waitForSuccessfulDeploy {
+		// solves timing issue where replicasets were not on the cluster, before our initial check
+		time.Sleep(10 * time.Second)
+
 		err := checkDeploymentStatus(client)
 		err := checkDeploymentStatus(client)
 
 
 		if err != nil {
 		if err != nil {
@@ -613,6 +616,9 @@ func updateUpgrade(_ *types.GetAuthenticatedUserResponse, client *api.Client, ar
 	}
 	}
 
 
 	if waitForSuccessfulDeploy {
 	if waitForSuccessfulDeploy {
+		// solves timing issue where replicasets were not on the cluster, before our initial check
+		time.Sleep(10 * time.Second)
+
 		err := checkDeploymentStatus(client)
 		err := checkDeploymentStatus(client)
 
 
 		if err != nil {
 		if err != nil {