Documentation ¶
Index ¶
- Constants
- Variables
- func ClusterMetadataCondition(err error) clusterregistryv1alpha1.ClusterCondition
- func ClusterReadyCondition(err error) clusterregistryv1alpha1.ClusterCondition
- func ClustersSyncedCondition(err error) clusterregistryv1alpha1.ClusterCondition
- func GetClusterID(ctx context.Context, c client.Client) (types.UID, error)
- func GetClusters(ctx context.Context, c client.Client) (map[types.UID]clusterregistryv1alpha1.Cluster, error)
- func GetCurrentCondition(cluster *clusterregistryv1alpha1.Cluster, ...) clusterregistryv1alpha1.ClusterCondition
- func InitNewResourceSyncController(rule *clusterregistryv1alpha1.ResourceSyncRule, cluster *clusters.Cluster, ...) (clusters.ManagedController, error)
- func LocalClusterCondition(isClusterLocal bool) clusterregistryv1alpha1.ClusterCondition
- func LocalClusterConflictCondition(conflict bool) clusterregistryv1alpha1.ClusterCondition
- func SetCondition(cluster *clusterregistryv1alpha1.Cluster, ...)
- func UpdateCluster(ctx context.Context, reconcileError error, c client.Client, ...) error
- func UpdateClusterStatus(ctx context.Context, c client.Client, cluster *clusterregistryv1alpha1.Cluster, ...) error
- func WrapAsPermanentError(err error) error
- type ClusterConditionsMap
- type ClusterFeatureReconciler
- type ClusterReconciler
- type Frame
- type InMemorySource
- type QueueAwareReconciler
- type RemoteClusterReconciler
- type ResourceSyncRuleReconciler
- func (r *ResourceSyncRuleReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ResourceSyncRuleReconciler) SetupWithController(ctx context.Context, ctrl controller.Controller) error
- func (r *ResourceSyncRuleReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- type StackTrace
- type SyncReconciler
- type SyncReconcilerOption
Constants ¶
View Source
const ( CoreResourcesSourceFeatureName = "cluster-registry-core-resources-source" CoreResourceLabelName = "cluster-registry-controller.k8s.cisco.com/core-sync-resource" )
Variables ¶
Functions ¶
func ClusterMetadataCondition ¶
func ClusterMetadataCondition(err error) clusterregistryv1alpha1.ClusterCondition
func ClusterReadyCondition ¶
func ClusterReadyCondition(err error) clusterregistryv1alpha1.ClusterCondition
func ClustersSyncedCondition ¶
func ClustersSyncedCondition(err error) clusterregistryv1alpha1.ClusterCondition
func GetClusters ¶
func GetCurrentCondition ¶
func GetCurrentCondition(cluster *clusterregistryv1alpha1.Cluster, t clusterregistryv1alpha1.ClusterConditionType) clusterregistryv1alpha1.ClusterCondition
func InitNewResourceSyncController ¶
func InitNewResourceSyncController(rule *clusterregistryv1alpha1.ResourceSyncRule, cluster *clusters.Cluster, clustersManager *clusters.Manager, mgr ctrl.Manager, log logr.Logger, config config.Configuration) (clusters.ManagedController, error)
func LocalClusterCondition ¶
func LocalClusterCondition(isClusterLocal bool) clusterregistryv1alpha1.ClusterCondition
func LocalClusterConflictCondition ¶
func LocalClusterConflictCondition(conflict bool) clusterregistryv1alpha1.ClusterCondition
func SetCondition ¶
func SetCondition(cluster *clusterregistryv1alpha1.Cluster, currentConditions ClusterConditionsMap, condition clusterregistryv1alpha1.ClusterCondition, recorder record.EventRecorder)
func UpdateCluster ¶
func UpdateClusterStatus ¶
func WrapAsPermanentError ¶
Types ¶
type ClusterConditionsMap ¶
type ClusterConditionsMap map[clusterregistryv1alpha1.ClusterConditionType]clusterregistryv1alpha1.ClusterCondition
func GetCurrentConditions ¶
func GetCurrentConditions(cluster *clusterregistryv1alpha1.Cluster) ClusterConditionsMap
type ClusterFeatureReconciler ¶
type ClusterFeatureReconciler struct { clusters.ManagedReconciler // contains filtered or unexported fields }
func (*ClusterFeatureReconciler) SetupWithController ¶
func (r *ClusterFeatureReconciler) SetupWithController(ctx context.Context, ctrl controller.Controller) error
type ClusterReconciler ¶
type ClusterReconciler struct { clusters.ManagedReconciler // contains filtered or unexported fields }
func NewClusterReconciler ¶
func NewClusterReconciler(name string, log logr.Logger, clustersManager *clusters.Manager, config config.Configuration) *ClusterReconciler
func (*ClusterReconciler) SetupWithController ¶
func (r *ClusterReconciler) SetupWithController(ctx context.Context, ctrl controller.Controller) error
func (*ClusterReconciler) SetupWithManager ¶
type InMemorySource ¶
type InMemorySource struct {
// contains filtered or unexported fields
}
func (*InMemorySource) Start ¶
func (s *InMemorySource) Start(ctx context.Context, h handler.EventHandler, q workqueue.RateLimitingInterface, p ...predicate.Predicate) error
func (*InMemorySource) String ¶
func (s *InMemorySource) String() string
type QueueAwareReconciler ¶
type QueueAwareReconciler interface {
// contains filtered or unexported methods
}
type RemoteClusterReconciler ¶
type RemoteClusterReconciler struct { clusters.ManagedReconciler // contains filtered or unexported fields }
func (*RemoteClusterReconciler) SetupWithController ¶
func (r *RemoteClusterReconciler) SetupWithController(ctx context.Context, ctrl controller.Controller) error
type ResourceSyncRuleReconciler ¶
type ResourceSyncRuleReconciler struct { clusters.ManagedReconciler // contains filtered or unexported fields }
func NewResourceSyncRuleReconciler ¶
func NewResourceSyncRuleReconciler(name string, log logr.Logger, clustersManager *clusters.Manager, config config.Configuration) *ResourceSyncRuleReconciler
func (*ResourceSyncRuleReconciler) SetupWithController ¶
func (r *ResourceSyncRuleReconciler) SetupWithController(ctx context.Context, ctrl controller.Controller) error
func (*ResourceSyncRuleReconciler) SetupWithManager ¶
type StackTrace ¶
type StackTrace = errors.StackTrace
type SyncReconciler ¶
type SyncReconciler interface { clusters.ManagedReconciler GetRule() *clusterregistryv1alpha1.ResourceSyncRule }
func NewSyncReconciler ¶
func NewSyncReconciler(name string, localMgr ctrl.Manager, rule *clusterregistryv1alpha1.ResourceSyncRule, log logr.Logger, clusterID string, clustersManager *clusters.Manager, opts ...SyncReconcilerOption) (SyncReconciler, error)
type SyncReconcilerOption ¶
type SyncReconcilerOption func(r *syncReconciler)
func WithRateLimiter ¶
func WithRateLimiter(rateLimiter throttled.RateLimiter) SyncReconcilerOption
Click to show internal directories.
Click to hide internal directories.