addon

package
v0.0.0-...-3e41b37 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

package addon contains the managed cluster side controllers for updating addon status and registering addon on the hub cluster.

Index

Constants

This section is empty.

Variables

View Source
var AddOnLeaseControllerLeaseDurationSeconds = 60

AddOnLeaseControllerLeaseDurationSeconds is exposed so that integration tests can crank up the lease update speed. TODO: we may add this to ManagedClusterAddOn API to allow addon to adjust its own lease duration seconds

Functions

func NewAddOnRegistrationController

func NewAddOnRegistrationController(
	clusterName string,
	agentName string,
	kubeconfigData []byte,
	kubeClient kubernetes.Interface,
	hubCSRInformer certificatesinformers.CertificateSigningRequestInformer,
	hubAddOnInformers addoninformerv1alpha1.ManagedClusterAddOnInformer,
	hubCSRClient csrclient.CertificateSigningRequestInterface,
	recorder events.Recorder,
) factory.Controller

NewAddOnRegistrationController returns an instance of addOnRegistrationController

func NewManagedClusterAddOnLeaseController

func NewManagedClusterAddOnLeaseController(clusterName string,
	addOnClient addonclient.Interface,
	addOnInformer addoninformerv1alpha1.ManagedClusterAddOnInformer,
	hubLeaseClient coordv1client.CoordinationV1Interface,
	leaseClient coordv1client.CoordinationV1Interface,
	resyncInterval time.Duration,
	recorder events.Recorder) factory.Controller

NewManagedClusterAddOnLeaseController returns an instance of managedClusterAddOnLeaseController

Types

This section is empty.

Jump to

Keyboard shortcuts

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