filesystem

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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 added in v0.5.0

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 added in v0.5.0

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