Skip to content

Commit

Permalink
fix clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
iberryful committed May 23, 2019
1 parent 13ec936 commit e77d619
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/services/gcp/pkg/stub/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ func collectLogs(c *RemoteCluster, cr *v1alpha1.GKECluster, log *logrus.Entry, s
for {
select {
case <-time.After(time.Minute * 5):
log.Infof("timeout collecting logs")
log.Infof("timeout collecting logs for %s", cr.Status.ClusterName)
close(done)
return
case <-done:
log.Infof("finished collecting logs")
log.Infof("finished collecting logs for %s", cr.Status.ClusterName)
return
}
}
Expand Down Expand Up @@ -365,6 +365,8 @@ func deleteGKECluster(cr *v1alpha1.GKECluster, log *logrus.Entry) error {
return nil
}

cr.Status.Message = "collecting logs"

if err := setAndUpdateFirstCleaned(cr, log); err != nil {
return err
}
Expand Down

0 comments on commit e77d619

Please sign in to comment.