directory

package
v1.17.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 23 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    logrus.FieldLogger
	Importer  policycell.PolicyImporter
}

Jump to

Keyboard shortcuts

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