Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWatcheChannelClosed = errors.New("watcher channel has close")
Functions ¶
This section is empty.
Types ¶
type K8sWatcher ¶
type K8sWatcher struct { Namespace string CfmName string MasterURL string KubeConfig string // contains filtered or unexported fields }
func NewK8sWatcher ¶
func (*K8sWatcher) GetConfigMap ¶
func (c *K8sWatcher) GetConfigMap(ctx context.Context) (map[string]*config.InjectionConfig, error)
func (*K8sWatcher) WatchConfigMap ¶
func (c *K8sWatcher) WatchConfigMap(ctx context.Context, notify chan<- interface{}) error
func (*K8sWatcher) WatchNamespace ¶
func (c *K8sWatcher) WatchNamespace(ctx context.Context, webhookEnabledLabel map[string]string, ch chan<- NamespaceEvent) error
type NamespaceEvent ¶
Click to show internal directories.
Click to hide internal directories.