Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GardenletDefaultKubeconfigSecretName is the default name for the field in the Gardenlet component configuration // .gardenClientConnection.KubeconfigSecret.Name GardenletDefaultKubeconfigSecretName = "gardenlet-kubeconfig" // GardenletDefaultKubeconfigBootstrapSecretName is the default name for the field in the Gardenlet component configuration // .gardenClientConnection.BootstrapKubeconfig.Name GardenletDefaultKubeconfigBootstrapSecretName = "gardenlet-kubeconfig-bootstrap" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actuator ¶
type Actuator interface { // Reconcile reconciles ManagedSeed creation or update. Reconcile(context.Context, *seedmanagementv1alpha1.ManagedSeed, *gardencorev1beta1.Shoot) error // Delete reconciles ManagedSeed deletion. Delete(context.Context, *seedmanagementv1alpha1.ManagedSeed, *gardencorev1beta1.Shoot) error }
Actuator acts upon ManagedSeed resources.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller controls ManagedSeeds.
func NewManagedSeedController ¶
func NewManagedSeedController(ctx context.Context, clientMap clientmap.ClientMap, config *config.GardenletConfiguration, imageVector imagevector.ImageVector, recorder record.EventRecorder, logger *logrus.Logger) (*Controller, error)
NewManagedSeedController creates a new Gardener controller for ManagedSeeds.
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 context is cancelled.
func (*Controller) RunningWorkers ¶
func (c *Controller) RunningWorkers() int
RunningWorkers returns the number of running workers.
type ValuesHelper ¶
type ValuesHelper interface { // MergeGardenletDeployment merges the given GardenletDeployment with the values from the parent gardenlet. MergeGardenletDeployment(*seedmanagementv1alpha1.GardenletDeployment, *gardencorev1beta1.Shoot) (*seedmanagementv1alpha1.GardenletDeployment, error) // MergeGardenletConfiguration merges the given GardenletConfiguration with the parent GardenletConfiguration. MergeGardenletConfiguration(config *configv1alpha1.GardenletConfiguration) (*configv1alpha1.GardenletConfiguration, error) // GetGardenletChartValues computes the values to be used when applying the gardenlet chart. GetGardenletChartValues(*seedmanagementv1alpha1.GardenletDeployment, *configv1alpha1.GardenletConfiguration, string) (map[string]interface{}, error) }
ValuesHelper provides methods for merging GardenletDeployment and GardenletConfiguration with parent, as well as computing the values to be used when applying the gardenlet chart.
func NewValuesHelper ¶
func NewValuesHelper(config *config.GardenletConfiguration, imageVector imagevector.ImageVector) ValuesHelper
NewValuesHelper creates a new ValuesHelper with the given parent GardenletConfiguration and image vector.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.