Skip to content

Commit

Permalink
Handle deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
saamalik committed Jan 18, 2021
1 parent 122dbd2 commit 84d5114
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/client/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ func (h *V1alpha1Client) GetCluster(uid string) (*models.V1alpha1SpectroCluster,
return nil, err
}

// special check if the cluster is marked deleted
cluster := success.Payload
if cluster.Status.State == "Deleted" {
return nil, nil
}

return success.Payload, nil
}

Expand Down

0 comments on commit 84d5114

Please sign in to comment.