Documentation
¶
Index ¶
- func ClusterPredicates(logger logr.Logger) predicate.Funcs
- func DeployWorkloadRoles(ctx context.Context, c client.Client, ...) error
- func MachinePredicates(logger logr.Logger) predicate.Funcs
- func WorkloadRolePredicates(logger logr.Logger) predicate.Funcs
- type ClusterFeatureReconciler
- type ClusterSummaryReconciler
- type Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClusterPredicates ¶
ClusterPredicates predicates for v1Cluster. ClusterFeatureReconciler watches v1Cluster events and react to those by reconciling itself based on following predicates
func DeployWorkloadRoles ¶
func MachinePredicates ¶
MachinePredicates predicates for v1Machine. ClusterFeatureReconciler watches v1Machine events and react to those by reconciling itself based on following predicates
Types ¶
type ClusterFeatureReconciler ¶
type ClusterFeatureReconciler struct { client.Client Scheme *runtime.Scheme Log logr.Logger Mux sync.Mutex // use a Mutex to update Map as MaxConcurrentReconciles is higher than one ClusterMap map[string]*Set // key: CAPI Cluster namespace/name; value: set of all ClusterFeatures matching the Cluster ClusterFeatureMap map[string]*Set // key: ClusterFeature name; value: set of CAPI Clusters matched ClusterFeatures map[string]configv1alpha1.Selector // key: ClusterFeature name; value ClusterFeature Selector }
ClusterFeatureReconciler reconciles a ClusterFeature object
func (*ClusterFeatureReconciler) SetupWithManager ¶
func (r *ClusterFeatureReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ClusterSummaryReconciler ¶
type ClusterSummaryReconciler struct { client.Client Scheme *runtime.Scheme Log logr.Logger Deployer deployer.DeployerInterface Mux sync.Mutex // use a Mutex to update Map as MaxConcurrentReconciles is higher than one WorkloadRoleMap map[string]*Set // key: WorkloadRole name; value: set of all ClusterSummaries referencing the WorkloadRole ClusterSummaryMap map[string]*Set // key: ClusterSummary name; value: set of WorkloadRoles referenced }
ClusterSummaryReconciler reconciles a ClusterSummary object
func (*ClusterSummaryReconciler) SetupWithManager ¶
func (r *ClusterSummaryReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.