Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultClusterMonitorGracePeriod = 9 * time.Minute // ClusterNotReadyThreshold indicate the threshold for cluster not ready period ClusterNotReadyThreshold = 3 )
Variables ¶
This section is empty.
Functions ¶
func GetClusterCondition ¶
func GetClusterCondition(status *clusterapi.ManagedClusterStatus, conditionType string) *metav1.Condition
GetClusterCondition extracts the provided condition from the given status and returns that.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a controller that manages cluster's lifecycle
func NewController ¶
func NewController(clusternetClient clusternetclientset.Interface, clusterInformer clusterinformers.ManagedClusterInformer, recorder record.EventRecorder) (*Controller, error)
Click to show internal directories.
Click to hide internal directories.