crwatcher

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ConfigKey is the key to the Kubernetes watcher config.
	ConfigKey = "policies.cr_watcher"
)

Variables

This section is empty.

Functions

func NewWatcher

func NewWatcher(policyTrackers, policyDynamicConfigTrackers notifiers.Trackers) (*watcher, error)

NewWatcher prepares watcher instance for the Kuberneter Policy.

Types

type CRWatcherConfig

type CRWatcherConfig struct {
	// Enabled indicates whether the Kubernetes watcher is enabled.
	Enabled bool `json:"enabled" default:"false"`
}

CRWatcherConfig holds fields to configure the Kubernetes watcher for Aperture Policy custom resource. swagger:model +kubebuilder:object:generate=true

func (*CRWatcherConfig) DeepCopy

func (in *CRWatcherConfig) DeepCopy() *CRWatcherConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CRWatcherConfig.

func (*CRWatcherConfig) DeepCopyInto

func (in *CRWatcherConfig) DeepCopyInto(out *CRWatcherConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Constructor

type Constructor struct {
	// Name of tracker instance.
	Name string
	// Name of dynamic config tracker instance.
	DynamicConfigName string
}

Constructor holds fields to create an annotated instance of Kubernetes Watcher.

func (Constructor) Annotate

func (constructor Constructor) Annotate() fx.Option

Annotate creates an annotated instance of Kubernetes Watcher.

Jump to

Keyboard shortcuts

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