Documentation
¶
Overview ¶
Package ciliumpod provides a shared configuration identifying the Cilium agent pods in the cluster (namespace and label selector).
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cell = cell.Module( "cilium-pod-config", "Configuration identifying the Cilium agent pods in the cluster", cell.Config(defaultConfig), )
Cell registers the shared Cilium-pod configuration.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Namespace string `mapstructure:"cilium-pod-namespace"`
Labels string `mapstructure:"cilium-pod-labels"`
}
Config identifies the Cilium agent pods in the cluster.
func (Config) ResolveNamespace ¶
ResolveNamespace returns the configured Namespace, falling back to the provided fallback namespace and then to metav1.NamespaceDefault when empty.
Click to show internal directories.
Click to hide internal directories.