networkpolicy

package
v1.86.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "networkpolicy"

ControllerName is the name of the controller.

Variables

This section is empty.

Functions

func AddToManager

func AddToManager(_ context.Context, mgr manager.Manager) error

AddToManager adds a controller to the given manager.

func IsShootNamespace

func IsShootNamespace() predicate.Predicate

IsShootNamespace returns a predicate that returns true if the namespace is a shoot namespace.

func IsShootProviderLocal

func IsShootProviderLocal() predicate.Predicate

IsShootProviderLocal returns a predicate that returns true if the provider of the shoot is of type "local".

Types

type Reconciler

type Reconciler struct {
	Client client.Client
}

Reconciler creates the required networkpolicies in the shoot namespace.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile creates the required networkpolicies in the shoot namespace.

Jump to

Keyboard shortcuts

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