kubekey

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

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

func CheckClusterRole() (bool, *rest.Config, error)

CheckClusterRole is used to check the cluster's role (host or member).

func CreateNodeForCluster

func CreateNodeForCluster(mgr *manager.Manager) error

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

func PatchNodeImportStatus(mgr *manager.Manager, status string) error

PatchNodeImportStatus is used to update new node's status.

func SaveKubeConfig

func SaveKubeConfig(mgr *manager.Manager) error

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

func UpdateKubeSphereCluster(mgr *manager.Manager) error

UpdateKubeSphereCluster is used to update the cluster object of KubeSphere's multicluster.

func UpdateStatus

func UpdateStatus(mgr *manager.Manager) error

UpdateStatus is used to update status for a new or expanded cluster.

Types

type ClusterReconciler

type ClusterReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ClusterReconciler reconciles a Cluster object

func (*ClusterReconciler) Reconcile

func (r *ClusterReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ClusterReconciler) SetupWithManager

func (r *ClusterReconciler) SetupWithManager(mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL