Documentation ¶
Overview ¶
Package resolver provides the logic for merging in the various sources of configuration, overrides, and drop-ins.
Index ¶
- Constants
- func ReadConfigSource(ctx context.Context, client client.Clientset, nodeName string, ...) (config map[string]string, descriptions []string, err error)
- func ResolveConfigurations(ctx context.Context, client client.Clientset, nodeName string, ...) (map[string]string, error)
- func WriteConfigurations(ctx context.Context, destDir string, data map[string]string) error
- type ConfigSource
Constants ¶
View Source
const ( KindConfigMap = "config-map" KindNode = "node" KindNodeConfig = "cilium-node-config" )
Variables ¶
This section is empty.
Functions ¶
func ReadConfigSource ¶
func ResolveConfigurations ¶
func WriteConfigurations ¶
WriteConfigurations writes the key-value pairs in data to destDir. It writes it like a Kubernetes config-map: It uses a double-layer symlink to allow for atomic updates: destDir/key -> ..data/key ..data -> ..data_$time
Types ¶
type ConfigSource ¶
type ConfigSource struct { Kind string // one of config-map, overrides, node Namespace string // The namespace for the ConfigMap or CiliumNodeConfigs Name string // The name of the ConfigMap or Node, unused for Overrides }
func (*ConfigSource) String ¶
func (cs *ConfigSource) String() string
Click to show internal directories.
Click to hide internal directories.