hub

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 33 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HubManagerOptions

type HubManagerOptions struct {
	ClusterAutoApprovalUsers []string
	GCResourceList           []string
}

HubManagerOptions holds configuration for hub manager controller

func NewHubManagerOptions

func NewHubManagerOptions() *HubManagerOptions

NewHubManagerOptions returns a HubManagerOptions

func (*HubManagerOptions) AddFlags

func (m *HubManagerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags registers flags for manager

func (*HubManagerOptions) RunControllerManager

func (m *HubManagerOptions) RunControllerManager(ctx context.Context, controllerContext *controllercmd.ControllerContext) error

RunControllerManager starts the controllers on hub to manage spoke cluster registration.

func (*HubManagerOptions) RunControllerManagerWithInformers added in v0.12.0

func (m *HubManagerOptions) RunControllerManagerWithInformers(
	ctx context.Context,
	controllerContext *controllercmd.ControllerContext,
	kubeClient kubernetes.Interface,
	metadataClient metadata.Interface,
	clusterClient clusterv1client.Interface,
	addOnClient addonclient.Interface,
	kubeInformers kubeinformers.SharedInformerFactory,
	clusterInformers clusterv1informers.SharedInformerFactory,
	workInformers workv1informers.SharedInformerFactory,
	addOnInformers addoninformers.SharedInformerFactory,
) error

Directories

Path Synopsis
package addon contains the hub-side controllers for updating addon status and rotating the addon certificate.
package addon contains the hub-side controllers for updating addon status and rotating the addon certificate.
package clusterrole contains the hub-side reconciler for the ManagedCluster necessary clusterrole resource.
package clusterrole contains the hub-side reconciler for the ManagedCluster necessary clusterrole resource.
package csr contains the hub-side reconciler for auto approving the renewal CertificateSigningRequests for an accepted managed cluster
package csr contains the hub-side reconciler for auto approving the renewal CertificateSigningRequests for an accepted managed cluster
package gc contains the hub-side reconciler to cleanup finalizer on role/rolebinding in cluster namespace when ManagedCluster is being deleted.
package gc contains the hub-side reconciler to cleanup finalizer on role/rolebinding in cluster namespace when ManagedCluster is being deleted.
package lease contains the hub-side controller for checking an accepted spoke cluster whether is available
package lease contains the hub-side controller for checking an accepted spoke cluster whether is available
package managedcluster contains the hub-side reconciler for the ManagedCluster resource.
package managedcluster contains the hub-side reconciler for the ManagedCluster resource.
Package user contains common definition works for kubernetes certificates
Package user contains common definition works for kubernetes certificates

Jump to

Keyboard shortcuts

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