directory

package
v1.18.3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"policy-directory-watcher",
	"Watches Directory for cilium network policy file updates",
	cell.Config(defaultConfig),
	cell.Provide(providePolicyWatcher),
)

Cell provides the Directory policy watcher. The Directory policy watcher watches CiliumNetworkPolicy, CiliumClusterWideNetworkPolicy created/deleted under a directory specified through cilium config. It reads and translates them to Cilium's own policy representation (api.Rules) and updates the policy repository (via PolicyManager) accordingly.

Functions

This section is empty.

Types

type Config

type Config struct {
	StaticCNPPath string
}

func (Config) Flags

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

type DirectoryWatcherReadStatus

type DirectoryWatcherReadStatus interface {
	Wait()
}

type PolicyWatcherParams

type PolicyWatcherParams struct {
	cell.In

	Lifecycle               cell.Lifecycle
	Logger                  *slog.Logger
	Importer                policycell.PolicyImporter
	ClusterInfo             cmtypes.ClusterInfo
	ClusterMeshPolicyConfig cmtypes.PolicyConfig
}

Jump to

Keyboard shortcuts

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