watcher

package
v0.0.0-...-54c7bc2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PurgeConfigAndSecret

func PurgeConfigAndSecret()

purge unused configmaps and secret

func PurgeJob

func PurgeJob()

trigger purge configmap every 5 mins

func SplitStr

func SplitStr(str string) string

func StartWatcher

func StartWatcher(label WatcherLabel, prevConfig, newConfig string)

func StoreLabel

func StoreLabel(clientWatcher Watcher) error

store label in file

func TriggerWatcher

func TriggerWatcher() error

Start the watcher if any previous labels were present

Types

type CornJob

type CornJob struct {
	Cron *cron.Cron
}

type Watcher

type Watcher struct {
	Labels []WatcherLabel `json:"Labels"`
}

type WatcherLabel

type WatcherLabel struct {
	NameSpace string `json:"nameSpace"`
	ConfigMap string `json:"configMap"`
	Secret    string `json:"secret"`
}

Jump to

Keyboard shortcuts

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