Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// ConfigMapName is the name of the configmap containing logical to physical namespace mappings.
ConfigMapName = "config-nsmap"
)
Functions ¶
func StartWatcher ¶
func StartWatcher(ctx context.Context, callback OnUpdateFn) error
StartWatcher starts watching for nsmap ConfigMap updates and notifies the given callback when an update occurs. This is a non-blocking function.
Types ¶
type LogicalToPhysicalNamespaceMapper ¶
type LogicalToPhysicalNamespaceMapper struct { Next plugin.Handler // contains filtered or unexported fields }
LogicalToPhysicalNamespaceMapper is a CoreDNS plugin to map logical namespaces to physical namespaces.
func (LogicalToPhysicalNamespaceMapper) Name ¶
func (nm LogicalToPhysicalNamespaceMapper) Name() string
Name implements the Handler interface.
Click to show internal directories.
Click to hide internal directories.