fix source of problem and some typos

This commit is contained in:
Felix Kunde
2019-08-26 18:07:22 +02:00
parent c7fc4bf9a4
commit 451fe44ed4
4 changed files with 5 additions and 11 deletions
-8
View File
@@ -258,14 +258,6 @@ 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)