controller

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateFilters

func EvaluateFilters(excluded Filters, included Filters, value string) bool

Types

type ClusterNetworkPolicyReconciler

type ClusterNetworkPolicyReconciler struct {
	client.Client
	Scheme             *runtime.Scheme
	Recorder           record.EventRecorder
	ExcludedNamespaces Filters
	IncludedNamespaces Filters
}

ClusterNetworkPolicyReconciler reconciles a ClusterNetworkPolicy object

func (*ClusterNetworkPolicyReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*ClusterNetworkPolicyReconciler) SetupWithManager

func (r *ClusterNetworkPolicyReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Filters

type Filters struct {
	Exact  []string
	Prefix []string
	Suffix []string
	// contains filtered or unexported fields
}

func (*Filters) Clear

func (f *Filters) Clear()

func (*Filters) IsEmpty

func (f *Filters) IsEmpty() bool

func (*Filters) Set

func (f *Filters) Set(value string) error

func (*Filters) String

func (f *Filters) String() string

Jump to

Keyboard shortcuts

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