Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EventReasonSuccessfulCreate = "SuccessfulCreate" EventReasonBackupFailed = "BackupFailed" EventReasonBackupSucceeded = "BackupSucceeded" )
View Source
var ( EtcdClusterLabelKey = "etcd.ydzs.io/cluster" EtcdClusterCommonLabelKey = "app" EtcdDataDirName = "datadir" )
Functions ¶
func MutateHeadlessSvc ¶
func MutateHeadlessSvc(cluster *v1alpha1.EtcdCluster, svc *corev1.Service)
根据 EtcdCluster 组装 Headless SVC
func MutateStatefulSet ¶
func MutateStatefulSet(cluster *v1alpha1.EtcdCluster, sts *appsv1.StatefulSet)
根据EtcdCluster组装StatefulSet
Types ¶
type CreateObject ¶
type CreateObject struct {
// contains filtered or unexported fields
}
创建一个新的资源对象
type EtcdBackupReconciler ¶
type EtcdBackupReconciler struct { client.Client Log logr.Logger Scheme *runtime.Scheme Recorder record.EventRecorder BackupImage string }
EtcdBackupReconciler reconciles a EtcdBackup object
func (*EtcdBackupReconciler) SetupWithManager ¶
func (r *EtcdBackupReconciler) SetupWithManager(mgr ctrl.Manager) error
type EtcdClusterReconciler ¶
EtcdClusterReconciler reconciles a EtcdCluster object
func (*EtcdClusterReconciler) SetupWithManager ¶
func (r *EtcdClusterReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.