networkpolicy

package
v1.60.5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "networkpolicy"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler added in v1.60.0

type Reconciler struct {
	SeedClient           client.Client
	Config               config.SeedAPIServerNetworkPolicyControllerConfiguration
	Resolver             hostnameresolver.HostResolver
	ResolverUpdate       <-chan event.GenericEvent
	GardenNamespace      string
	IstioSystemNamespace string
}

Reconciler implements the reconcile.Reconcile interface for namespace reconciliation.

func (*Reconciler) AddToManager added in v1.60.0

func (r *Reconciler) AddToManager(mgr manager.Manager, seedCluster cluster.Cluster) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) IsKubernetesEndpoint added in v1.60.0

func (r *Reconciler) IsKubernetesEndpoint() predicate.Predicate

IsKubernetesEndpoint returns a predicate which evaluates if the object is the kubernetes endpoint.

func (*Reconciler) MapObjectToNamespace added in v1.60.0

func (r *Reconciler) MapObjectToNamespace(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request

MapObjectToNamespace is a mapper function which maps an object to its namespace.

func (*Reconciler) MapToNamespaces added in v1.60.0

func (r *Reconciler) MapToNamespaces(ctx context.Context, log logr.Logger, _ client.Reader, _ client.Object) []reconcile.Request

MapToNamespaces is a mapper function which returns requests for all shoot namespaces + garden namespace + istio-system namespace.

func (*Reconciler) Reconcile added in v1.60.0

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

Reconcile reconciles namespace in order to create the "allowed-to-seed-apiserver" Network Policy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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