Documentation
¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager, virtualCluster cluster.Cluster) error
- func (r *Reconciler) OperatorResponsiblePredicate(ctx context.Context) predicate.Predicate
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
View Source
const ControllerName = "gardenlet"
ControllerName is the name of this controller.
Variables ¶
View Source
var RequeueDurationSeedIsNotYetRegistered = 30 * time.Second
RequeueDurationSeedIsNotYetRegistered is the duration after which the Seed registration is checked when gardenlet was just deployed. Exposed for testing.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
RuntimeCluster cluster.Cluster
VirtualConfig *rest.Config
VirtualClient client.Client
Config operatorconfigv1alpha1.GardenletDeployerControllerConfig
Clock clock.Clock
Recorder record.EventRecorder
HelmRegistry oci.Interface
GardenNamespace string
GardenNamespaceTarget string
DefaultGardenClusterAddress string
}
Reconciler reconciles the Gardenlet.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager, virtualCluster cluster.Cluster) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) OperatorResponsiblePredicate ¶
func (r *Reconciler) OperatorResponsiblePredicate(ctx context.Context) predicate.Predicate
OperatorResponsiblePredicate is a predicate for checking whether the Seed object has already been created for the Gardenlet resource, and whether the kubeconfig secret ref has been removed. It also returns 'true' if the 'force-redeploy' operation annotation is set, even though the Seed object already exists.
Click to show internal directories.
Click to hide internal directories.