Bläddra i källkod

add debug statements for improvements

Alexander Belanger 4 år sedan
förälder
incheckning
16175074a8
2 ändrade filer med 4 tillägg och 0 borttagningar
  1. 2 0
      cli/cmd/apply.go
  2. 2 0
      cli/cmd/job.go

+ 2 - 0
cli/cmd/apply.go

@@ -386,6 +386,8 @@ func (d *Driver) applyApplication(resource *models.Resource, client *api.Client,
 		if err != nil {
 			return nil, err
 		}
+	} else {
+		color.New(color.FgYellow).Printf("Skipping creation for %s as onlyCreate is set to true\n", resource.Name)
 	}
 
 	if err = d.assignOutput(resource, client); err != nil {

+ 2 - 0
cli/cmd/job.go

@@ -170,6 +170,8 @@ func waitForJob(_ *types.GetAuthenticatedUserResponse, client *api.Client, args
 	// if it does not exist, we set the default to 30 minutes
 	timeoutVal := getJobTimeoutValue(jobRelease.Release.Config)
 
+	color.New(color.FgYellow).Printf("Waiting for timeout seconds %d\n", timeoutVal.Seconds())
+
 	// if no job exists with the given revision, wait for the timeout value
 	timeWait := time.Now().Add(timeoutVal)