networkpolicy

package
v1.31.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller watching the endpoints resource "kubernetes" of the Seeds's kube-apiserver in the default namespace to keep the NetworkPolicy "allow-to-seed-apiserver" in sync.

func NewController

func NewController(ctx context.Context, seedClient kubernetes.Interface, logger *logrus.Logger, recorder record.EventRecorder, seedName string) (*Controller, error)

NewController instantiates a new networkpolicy controller.

func (*Controller) CollectMetrics

func (c *Controller) CollectMetrics(ch chan<- prometheus.Metric)

CollectMetrics implements gardenmetrics.ControllerMetricsCollector interface

func (*Controller) Run

func (c *Controller) Run(ctx context.Context, workers int)

Run runs the Controller until the given stop channel can be read from.

func (*Controller) RunningWorkers

func (c *Controller) RunningWorkers() int

RunningWorkers returns the number of running workers.

func (*Controller) Stop

func (c *Controller) Stop()

Stop the controller

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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