You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Package cleaner is a background process that compares the kubernetes namespace list with the folders in the local git home directory, deleting what's not in the namespace list
package cleaner
import (
"log"
"k8s.io/kubernetes/pkg/api"
"github.com/deis/builder/pkg/k8s"
"github.com/deis/builder/pkg/sys"
)
const (
dotGitSuffix=".git"
)
// Run starts the deleted app cleaner. This function listens to the Kubernetes event stream for events that indicate namespaces that were `DELETED`.
// If the namespace name matches a folder on the local filesystem, this func deletes that folder.
// Note that this function blocks until the watcher returned by `nsLister.Watch` is closed, so you should launch it in a goroutine.