{"modulePath":"github.com/openshift/hive","version":"v1.1.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package clustersync\n\n## Constants\n\n```go\nconst (\n\tControllerName = hivev1.ClustersyncControllerName\n)\n```\n\n## Functions\n\n```go\nfunc Add(mgr manager.Manager) error\n```\nAdd 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.\n\n```go\nfunc AddToManager(mgr manager.Manager, r *ReconcileClusterSync, concurrentReconciles int, rateLimiter workqueue.RateLimiter) error\n```\nAddToManager adds a new Controller to mgr with r as the reconcile.Reconciler\n\n## Types\n\n```go\ntype CommonSyncSet interface {\n\t// AsRuntimeObject gets the syncset as a runtime.Object\n\tAsRuntimeObject() runtime.Object\n\n\t// AsMetaObject gets the syncset as a metav1.Object\n\tAsMetaObject() metav1.Object\n\n\t// GetSpec gets the common spec of the syncset\n\tGetSpec() *hivev1.SyncSetCommonSpec\n}\n```\nCommonSyncSet is an interface for interacting with SyncSets and SelectorSyncSets in a generic way.\n\n```go\ntype ReconcileClusterSync struct {\n\tclient.Client\n\t// contains filtered or unexported fields\n}\n```\nReconcileClusterSync reconciles a ClusterDeployment object to apply its SyncSets and SelectorSyncSets\n\n```go\nfunc NewReconciler(mgr manager.Manager, rateLimiter flowcontrol.RateLimiter) (*ReconcileClusterSync, error)\n```\nNewReconciler returns a new ReconcileClusterSync\n\n```go\nfunc (r *ReconcileClusterSync) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)\n```\nReconcile reads the state of the ClusterDeployment and applies any SyncSets or SelectorSyncSets that need to be applied or re-applied.\n\n```go\ntype SelectorSyncSetAsCommon hivev1.SelectorSyncSet\n```\nSelectorSyncSetAsCommon is a SelectorSyncSet typed as a CommonSyncSet\n\n```go\nfunc (s *SelectorSyncSetAsCommon) AsMetaObject() metav1.Object\n```\n\n```go\nfunc (s *SelectorSyncSetAsCommon) AsRuntimeObject() runtime.Object\n```\n\n```go\nfunc (s *SelectorSyncSetAsCommon) GetSpec() *hivev1.SyncSetCommonSpec\n```\n\n```go\ntype SyncSetAsCommon hivev1.SyncSet\n```\nSyncSetAsCommon is a SyncSet typed as a CommonSyncSet\n\n```go\nfunc (s *SyncSetAsCommon) AsMetaObject() metav1.Object\n```\n\n```go\nfunc (s *SyncSetAsCommon) AsRuntimeObject() runtime.Object\n```\n\n```go\nfunc (s *SyncSetAsCommon) GetSpec() *hivev1.SyncSetCommonSpec\n```\n\n","path":"github.com/openshift/hive/pkg/controller/clustersync","name":"clustersync","synopsis":"","isRedistributable":true}
