Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The condition information for reporting if a property provider has started. ClusterPropertyProviderStartedTimedOutReason = "TimedOut" ClusterPropertyProviderStartedTimedOutMessage = "The property provider does not start up in time" ClusterPropertyProviderStartedFailedReason = "FailedToStart" ClusterPropertyProviderStartedFailedMessage = "Failed to start the property provider: %v" ClusterPropertyProviderStartedReason = "Started" ClusterPropertyProviderStartedMessage = "The property provider has started successfully" // The condition information for reporting if the latest cluster properties have been collected. ClusterPropertyCollectionFailedTooManyCallsReason = "TooManyCalls" ClusterPropertyCollectionFailedTooManyCallsMessage = "There are too many on-going calls to the property provider; will retry if some calls return" ClusterPropertyCollectionTimedOutReason = "TimedOut" ClusterPropertyCollectionTimedOutMessage = "The property provider does not respond in time" ClusterPropertyCollectionSucceededReason = "PropertiesCollected" ClusterPropertyCollectionSucceededMessage = "The property provider has returned the latest cluster properties" // EventReasonInternalMemberClusterHealthy is the event type and reason string when the agent is healthy. EventReasonInternalMemberClusterHealthy = "InternalMemberClusterHealthy" // EventReasonInternalMemberClusterUnhealthy is the event type and reason string when the agent is unhealthy. EventReasonInternalMemberClusterUnhealthy = "InternalMemberClusterUnhealthy" // EventReasonInternalMemberClusterJoined is the event type and reason string when the agent has joined. EventReasonInternalMemberClusterJoined = "InternalMemberClusterJoined" // EventReasonInternalMemberClusterFailedToJoin is the event type and reason string when the agent failed to join. EventReasonInternalMemberClusterFailedToJoin = "InternalMemberClusterFailedToJoin" // EventReasonInternalMemberClusterFailedToLeave is the event type and reason string when the agent failed to leave. EventReasonInternalMemberClusterFailedToLeave = "InternalMemberClusterFailedToLeave" // EventReasonInternalMemberClusterLeft is the event type and reason string when the agent left. EventReasonInternalMemberClusterLeft = "InternalMemberClusterLeft" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
// contains filtered or unexported fields
}
Reconciler reconciles a InternalMemberCluster object in the member cluster.
func NewReconciler ¶
func NewReconciler(globalCtx context.Context, hubClient client.Client, memberCfg *rest.Config, memberClient client.Client, workController controller.MemberController, propertyProvider propertyprovider.PropertyProvider, ) (*Reconciler, error)
NewReconciler creates a new reconciler for the internalMemberCluster CR
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.