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, log logr.Logger, 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.
Click to show internal directories.
Click to hide internal directories.