cleaner

package
v2.0.0-beta1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(gitHome string, nsLister k8s.NamespaceWatcher, fs sys.FS) error

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL