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 ¶
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.
Click to show internal directories.
Click to hide internal directories.