clustersync

package
v1.1.16 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = hivev1.ClustersyncControllerName
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new clustersync Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func AddToManager

func AddToManager(mgr manager.Manager, r *ReconcileClusterSync, concurrentReconciles int, rateLimiter workqueue.RateLimiter) error

AddToManager adds a new Controller to mgr with r as the reconcile.Reconciler

Types

type CommonSyncSet

type CommonSyncSet interface {
	// AsRuntimeObject gets the syncset as a runtime.Object
	AsRuntimeObject() runtime.Object

	// AsMetaObject gets the syncset as a metav1.Object
	AsMetaObject() metav1.Object

	// GetSpec gets the common spec of the syncset
	GetSpec() *hivev1.SyncSetCommonSpec
}

CommonSyncSet is an interface for interacting with SyncSets and SelectorSyncSets in a generic way.

type ReconcileClusterSync

type ReconcileClusterSync struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileClusterSync reconciles a ClusterDeployment object to apply its SyncSets and SelectorSyncSets

func NewReconciler

func NewReconciler(mgr manager.Manager, rateLimiter flowcontrol.RateLimiter) (*ReconcileClusterSync, error)

NewReconciler returns a new ReconcileClusterSync

func (*ReconcileClusterSync) Reconcile

Reconcile reads the state of the ClusterDeployment and applies any SyncSets or SelectorSyncSets that need to be applied or re-applied.

type SelectorSyncSetAsCommon

type SelectorSyncSetAsCommon hivev1.SelectorSyncSet

SelectorSyncSetAsCommon is a SelectorSyncSet typed as a CommonSyncSet

func (*SelectorSyncSetAsCommon) AsMetaObject

func (s *SelectorSyncSetAsCommon) AsMetaObject() metav1.Object

func (*SelectorSyncSetAsCommon) AsRuntimeObject

func (s *SelectorSyncSetAsCommon) AsRuntimeObject() runtime.Object

func (*SelectorSyncSetAsCommon) GetSpec

type SyncSetAsCommon

type SyncSetAsCommon hivev1.SyncSet

SyncSetAsCommon is a SyncSet typed as a CommonSyncSet

func (*SyncSetAsCommon) AsMetaObject

func (s *SyncSetAsCommon) AsMetaObject() metav1.Object

func (*SyncSetAsCommon) AsRuntimeObject

func (s *SyncSetAsCommon) AsRuntimeObject() runtime.Object

func (*SyncSetAsCommon) GetSpec

Jump to

Keyboard shortcuts

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