Documentation ¶
Index ¶
- Constants
- func BecomeLeader(ctx context.Context, cfg *rest.Config, lockName, namespace string) error
- func ContainerPortByName(ports []corev1.ContainerPort, name string) (cPort int32, err error)
- func ContainsString(slice []string, str string) bool
- func GetMetaPath(zoo *v1beta1.ZookeeperCluster) (path string)
- func GetZkServiceUri(zoo *v1beta1.ZookeeperCluster) (zkUri string)
- func IsPVCOrphan(zkPvcName string, replicas int32) bool
- func RemoveString(slice []string, str string) (result []string)
- func ServicePortByName(ports []corev1.ServicePort, name string) (port corev1.ServicePort, err error)
Constants ¶
View Source
const (
// Root ZNode for storing all zookeeper-operator related metadata.
ZKMetaRoot = "/zookeeper-operator"
)
View Source
const (
ZkFinalizer = "cleanUpZookeeperPVC"
)
Variables ¶
This section is empty.
Functions ¶
func BecomeLeader ¶ added in v0.2.14
BecomeLeader with pre-check cluster status - is there a previous pod in bad state?
func ContainerPortByName ¶ added in v0.2.6
func ContainerPortByName(ports []corev1.ContainerPort, name string) (cPort int32, err error)
ContainerPortByName returns a container port of name provided
func ContainsString ¶
func GetMetaPath ¶ added in v0.2.6
func GetMetaPath(zoo *v1beta1.ZookeeperCluster) (path string)
func GetZkServiceUri ¶ added in v0.2.6
func GetZkServiceUri(zoo *v1beta1.ZookeeperCluster) (zkUri string)
func IsPVCOrphan ¶
func RemoveString ¶
func ServicePortByName ¶
func ServicePortByName(ports []corev1.ServicePort, name string) (port corev1.ServicePort, err error)
ServicePortByName returns a container port of name provided
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.