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.
Click to show internal directories.
Click to hide internal directories.