Skip to content
This repository was archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
EVEREST-312 handle repeated deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Sep 12, 2023
1 parent 72bd2bd commit f2c634c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/delete/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,11 @@ func (c *Cluster) askForKubernetesCluster(ctx context.Context) error {
return err
}

if len(clusters) == 0 {
c.l.Info("no Kubernetes clusters found")
return common.ErrExitWithError
}

opts := make([]string, 0, len(clusters)+1)
for _, i := range clusters {
opts = append(opts, i.Name)
Expand Down

0 comments on commit f2c634c

Please sign in to comment.