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.
Click to show internal directories.
Click to hide internal directories.