filesystem

package
v0.0.0-...-0010da6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigDir is the mount path of the configMap volume.
	ConfigDir = "/etc/config/fanout_sidecar"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapWatcher

type ConfigMapWatcher struct {
	// contains filtered or unexported fields
}

Monitors an attached ConfigMap volume for updated configuration and calls `configUpdated` when the value changes.

func NewConfigMapWatcher

func NewConfigMapWatcher(logger *zap.Logger, dir string, updateConfig swappable.UpdateConfig) (*ConfigMapWatcher, error)

NewConfigMapWatcher creates a new filesystem.ConfigMapWatcher. The caller is responsible for calling Start(<-chan), likely via a controller-runtime Manager.

func (*ConfigMapWatcher) Start

func (cmw *ConfigMapWatcher) Start(stopCh <-chan struct{}) error

Start implements controller runtime's manager.Runnable.

Jump to

Keyboard shortcuts

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