Documentation ¶
Index ¶
- Variables
- func CheckAdminService(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) error
- func CreateCluster(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) (*api.ZookeeperCluster, error)
- func DeleteCluster(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) error
- func DeletePods(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster, size int) error
- func GetCluster(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) (*api.ZookeeperCluster, error)
- func GetPods(k8client client.Client, z *api.ZookeeperCluster) (*corev1.PodList, error)
- func NewClusterWithEmptyDir(namespace string) *api.ZookeeperCluster
- func NewClusterWithVersion(namespace, version string) *api.ZookeeperCluster
- func NewDefaultCluster(namespace string) *api.ZookeeperCluster
- func UpdateCluster(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) error
- func WaitForClusterToBecomeReady(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster, size int) error
- func WaitForClusterToTerminate(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) error
- func WaitForClusterToUpgrade(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster, ...) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckAdminService ¶ added in v0.2.10
func CreateCluster ¶
func CreateCluster(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) (*api.ZookeeperCluster, error)
CreateCluster creates a ZookeeperCluster CR with the desired spec
func DeleteCluster ¶
DeleteCluster deletes the ZookeeperCluster CR specified by cluster spec
func DeletePods ¶
func GetCluster ¶
func GetCluster(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) (*api.ZookeeperCluster, error)
GetCluster returns the latest ZookeeperCluster CR
func NewClusterWithEmptyDir ¶ added in v0.2.9
func NewClusterWithEmptyDir(namespace string) *api.ZookeeperCluster
func NewClusterWithVersion ¶
func NewClusterWithVersion(namespace, version string) *api.ZookeeperCluster
func NewDefaultCluster ¶
func NewDefaultCluster(namespace string) *api.ZookeeperCluster
NewDefaultCluster returns a cluster with an empty spec, which will be filled with default values
func UpdateCluster ¶
UpdateCluster updates the ZookeeperCluster CR
func WaitForClusterToBecomeReady ¶
func WaitForClusterToBecomeReady(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster, size int) error
WaitForClusterToBecomeReady will wait until all cluster pods are ready
func WaitForClusterToTerminate ¶
func WaitForClusterToTerminate(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster) error
WaitForClusterToTerminate will wait until all cluster pods are terminated
func WaitForClusterToUpgrade ¶
func WaitForClusterToUpgrade(logger logr.Logger, k8client client.Client, z *api.ZookeeperCluster, targetVersion string) error
WaitForClusterToUpgrade will wait until all pods are upgraded
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.