FIX CleanupOldExecutorObjects in all namespaces (#879)

Don't just look in functionNamespace anymore
This commit is contained in:
Adam Bouhenguel
2018-08-29 15:12:31 -07:00
committed by Soam Vasani
parent 21b0a1d852
commit 2dbae32f20
2 changed files with 22 additions and 24 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ func StartExecutor(fissionNamespace string, functionNamespace string, envBuilder
fsCache := fscache.MakeFunctionServiceCache()
poolID := strings.ToLower(uniuri.NewLen(8))
reaper.CleanupOldExecutorObjects(kubernetesClient, functionNamespace, poolID)
reaper.CleanupOldExecutorObjects(kubernetesClient, poolID)
go reaper.CleanupRoleBindings(kubernetesClient, fissionClient, functionNamespace, envBuilderNamespace, time.Minute*30)
gpm := poolmgr.MakeGenericPoolManager(