Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnect ¶
Types ¶
type ConfigmapReconciler ¶
type ConfigmapReconciler struct { common.GeneralResourceStyleReconciler[*zkv1alpha1.ZookeeperZnode, *zkv1alpha1.RoleGroupSpec] // contains filtered or unexported fields }
func NewConfigmap ¶
func NewConfigmap( scheme *runtime.Scheme, instance *zkv1alpha1.ZookeeperZnode, client client.Client, groupName string, mergedLabels map[string]string, mergedCfg *zkv1alpha1.RoleGroupSpec, znodePath string, cluster *zkv1alpha1.ZookeeperCluster, ) *ConfigmapReconciler
NewConfigmap new a ConfigmapReconciler
type ZNodeReconciler ¶
type ZNodeReconciler struct {
// contains filtered or unexported fields
}
func NewZNodeReconciler ¶
func NewZNodeReconciler( scheme *runtime.Scheme, instance *zkv1alpha1.ZookeeperZnode, client client.Client, ) *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 ZookeeperZnodeReconciler ¶
ZookeeperZnodeReconciler reconciles a ZookeeperZnode object
func (*ZookeeperZnodeReconciler) Reconcile ¶
func (r *ZookeeperZnodeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the ZookeeperZnode object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
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.
func (*ZookeeperZnodeReconciler) UpdateStatus ¶
func (r *ZookeeperZnodeReconciler) UpdateStatus(ctx context.Context, instance *zkv1alpha1.ZookeeperCluster) error
UpdateStatus updates the status of the ZookeeperCluster resource https://stackoverflow.com/questions/76388004/k8s-controller-update-status-and-condition