bastion

package
v1.41.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ControllerName is the name of this controller.
	ControllerName = "bastion-controller"
)

Variables

This section is empty.

Functions

func IsBastionManagedByThisGardenlet added in v1.40.0

func IsBastionManagedByThisGardenlet(bastion *operationsv1alpha1.Bastion, gc *config.GardenletConfiguration) bool

IsBastionManagedByThisGardenlet checks if the given Bastion is managed by this gardenlet by comparing it with the seed name from the GardenletConfiguration.

Types

type Controller

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

Controller controls Bastions.

func NewBastionController

func NewBastionController(ctx context.Context, clientMap clientmap.ClientMap, config *config.GardenletConfiguration) (*Controller, error)

NewBastionController takes a context <ctx>, a map of Kubernetes clients for for both the garden and seed clusters <clientMap> and the gardenlet configuration to extract the config for itself <config>. It creates a new Gardener controller.

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.

Jump to

Keyboard shortcuts

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