diff --git a/pkg/preflight/preflight.go b/pkg/preflight/preflight.go index edcfea6e4e..4ec02d270d 100644 --- a/pkg/preflight/preflight.go +++ b/pkg/preflight/preflight.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "path/filepath" + "time" "github.com/pkg/errors" apptypes "github.com/replicatedhq/kots/pkg/app/types" @@ -277,6 +278,9 @@ func maybeDeployFirstVersion(appID string, sequence int64, preflightResults *typ return false, errors.Wrap(err, "failed to deploy version") } + // this ensures the version status is updated before returning + time.Sleep(time.Second) + return true, nil }