Skip to content

Commit

Permalink
Updated Capella cleanup to properly remove expired empty projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
brett19 committed Sep 15, 2023
1 parent d91b1e5 commit 2e262aa
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions deployment/clouddeploy/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -881,13 +881,7 @@ func (p *Deployer) Cleanup(ctx context.Context) error {

curTime := time.Now()
for _, cluster := range clusters {
if cluster.Cluster == nil {
continue
}

if !cluster.Meta.Expiry.After(curTime) {
// in order to avoid blocking people trying to do work while
// we cleanup old clusters, we only delete the cluster here
p.logger.Info("removing cluster",
zap.String("cluster-id", cluster.Meta.ID.String()))

Expand Down

0 comments on commit 2e262aa

Please sign in to comment.