ciliumpod

package
v1.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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) Flags

func (c Config) Flags(flags *pflag.FlagSet)

func (Config) ResolveNamespace

func (c Config) ResolveNamespace(fallback string) string

ResolveNamespace returns the configured Namespace, falling back to the provided fallback namespace and then to metav1.NamespaceDefault when empty.

func (Config) Selector

func (c Config) Selector() (labels.Selector, error)

Selector parses Labels into a labels.Selector.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL