Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ControllerName is the name of this controller.
ControllerName = "bastion-controller"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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) 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.
Click to show internal directories.
Click to hide internal directories.