Documentation ¶
Index ¶
Constants ¶
View Source
const ZNodeDeleteFinalizer = "znode.zncdata.dev/delete-znode"
Variables ¶
View Source
var ErrZookeeperCluster = errors.New("zookeeper cluster get failed")
Functions ¶
Types ¶
type ZNodeReconciler ¶
type ZNodeReconciler struct {
// contains filtered or unexported fields
}
func NewZNodeReconciler ¶
func NewZNodeReconciler( scheme *runtime.Scheme, instance *zkv1alpha1.ZookeeperZnode, client ctrlclient.Client, zkSecurity *security.ZookeeperSecurity, ) *ZNodeReconciler
NewZNodeReconciler new a ZNodeReconciler
type ZkClient ¶
type ZkClientRepository ¶
type ZkClientRepository interface { // Create a znode with the given path and data Create(path string, data []byte) error // Delete the znode with the given path Delete(path string) error // Close the connection Close() // Exists weather the znode with the given path exists Exists(path string) (bool, error) }
type ZnodeDeleteFinalizer ¶
type ZnodeDeleteFinalizer struct { Chroot string ZkCluster *zkv1alpha1.ZookeeperCluster // contains filtered or unexported fields }
func (ZnodeDeleteFinalizer) Finalize ¶
func (z ZnodeDeleteFinalizer) Finalize(context.Context, ctrlclient.Object) (finalizer.Result, error)
type ZookeeperZnodeReconciler ¶
ZookeeperZnodeReconciler reconciles a ZookeeperZnode object
func (*ZookeeperZnodeReconciler) Reconcile ¶
func (r *ZookeeperZnodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile
func (*ZookeeperZnodeReconciler) SetupWithManager ¶
func (r *ZookeeperZnodeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.