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, addOnClient addonclient.Interface, managementKubeClient kubernetes.Interface, managedKubeClient kubernetes.Interface, csrControl clientcert.CSRControl, hubAddOnInformers addoninformerv1alpha1.ManagedClusterAddOnInformer, 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, managementLeaseClient coordv1client.CoordinationV1Interface, spokeLeaseClient 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.