Skip to content

Commit ccca9b5

Browse files
author
Aaron Schlesinger
committed
doc(pkg/cleaner/cleaner.go): add godoc for the run function
1 parent a165232 commit ccca9b5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/cleaner/cleaner.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ func getDisjunction(namespaceList []api.Namespace, dirs []string) []string {
6969
return ret
7070
}
7171

72+
// Run starts the deleted app cleaner. Every pollInterval, it compares the result of nsLister.List with the directories in the top level of gitHome on the local file system. On any error, it uses log.Debug to output a human readable description of what happened.
73+
// TODO: locking mechanism on repositories. Nobody should be able to push to a repo while one is being deleted
7274
func Run(gitHome string, nsLister k8s.NamespaceLister, pollInterval time.Duration) error {
7375
for {
7476
nsList, err := nsLister.List(labels.Everything(), fields.Everything())

0 commit comments

Comments
 (0)