Documentation ¶
Index ¶
- Constants
- func CheckClusterRole() (bool, *rest.Config, error)
- func CreateNodeForCluster(mgr *manager.Manager) error
- func NewKubekeyClient() (*kubekeyclientset.Clientset, error)
- func PatchNodeImportStatus(mgr *manager.Manager, status string) error
- func SaveKubeConfig(mgr *manager.Manager) error
- func UpdateClusterConditions(mgr *manager.Manager, step string, startTime, endTime metav1.Time, status bool, ...) error
- func UpdateKubeSphereCluster(mgr *manager.Manager) error
- func UpdateStatus(mgr *manager.Manager) error
- type ClusterReconciler
Constants ¶
View Source
const ( CreateCluster = "create cluster" AddNodes = "add nodes" )
View Source
const ( // Pending representative the cluster is being created. Pending = "pending" // Success representative the cluster cluster has been created successfully. Success = "success" // Failed creation failure. Failed = "failed" )
Variables ¶
This section is empty.
Functions ¶
func CheckClusterRole ¶
CheckClusterRole is used to check the cluster's role (host or member).
func CreateNodeForCluster ¶
CreateNodeForCluster is used to create new nodes for the cluster to be add nodes.
func NewKubekeyClient ¶
func NewKubekeyClient() (*kubekeyclientset.Clientset, error)
NewKubekeyClient is used to create a kubekey cluster client.
func PatchNodeImportStatus ¶
PatchNodeImportStatus is used to update new node's status.
func SaveKubeConfig ¶
SaveKubeConfig is used to save the kubeconfig for the new cluster.
func UpdateClusterConditions ¶
func UpdateClusterConditions(mgr *manager.Manager, step string, startTime, endTime metav1.Time, status bool, index int) error
UpdateClusterConditions is used for updating cluster installation process information or adding nodes.
func UpdateKubeSphereCluster ¶
UpdateKubeSphereCluster is used to update the cluster object of KubeSphere's multicluster.
func UpdateStatus ¶
UpdateStatus is used to update status for a new or expanded cluster.
Types ¶
type ClusterReconciler ¶
ClusterReconciler reconciles a Cluster object
func (*ClusterReconciler) SetupWithManager ¶
func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.