Skip to content
Snippets Groups Projects
Commit c7fc4bf9 authored by Felix Kunde's avatar Felix Kunde
Browse files

set cluster name if delete happens too soon

parent abdb003f
No related branches found
No related tags found
No related merge requests found
......@@ -258,6 +258,14 @@ func (c *Controller) processEvent(event ClusterEvent) {
}
lg.Infoln("deletion of the cluster started")
// HACK if a delete happens too soon, cl fields are empty
// thus, pods, logical backup jobs and headless service will not get deleted
// see issues 551, 218
if cl.Name == "" {
cl.Name = clusterName.Name
cl.Namespace = clusterName.Namespace
}
teamName := strings.ToLower(cl.Spec.TeamID)
c.curWorkerCluster.Store(event.WorkerID, cl)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment