import "istio.io/istio/pkg/kube/configmapwatcher"
type Controller struct {
// contains filtered or unexported fields
}
Controller watches a ConfigMap and calls the given callback when the ConfigMap changes. The ConfigMap is passed to the callback, or nil if it doesn't exist.
func NewController(client kube.Client, namespace, name string, callback func(*v1.ConfigMap)) *Controller
NewController returns a new ConfigMap watcher controller.
func (c *Controller) HasSynced() bool
HasSynced returns whether the underlying cache has synced and the callback has been called at least once.
func (c *Controller) Run(stop <-chan struct{})
Package configmapwatcher imports 15 packages (graph) and is imported by 3 packages. Updated 2020-12-19. Refresh now. Tools for package owners.