Documentation ¶
Overview ¶
*
- Copyright (c) 2020 Dell Inc., or its subsidiaries. All Rights Reserved. *
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0
Index ¶
- func MakeAdminServerService(z *v1beta1.ZookeeperCluster) *v1.Service
- func MakeClientService(z *v1beta1.ZookeeperCluster) *v1.Service
- func MakeConfigMap(z *v1beta1.ZookeeperCluster) *v1.ConfigMap
- func MakeHeadlessService(z *v1beta1.ZookeeperCluster) *v1.Service
- func MakePodDisruptionBudget(z *v1beta1.ZookeeperCluster) *policyv1.PodDisruptionBudget
- func MakeServiceAccount(z *v1beta1.ZookeeperCluster) *v1.ServiceAccount
- func MakeStatefulSet(z *v1beta1.ZookeeperCluster) *appsv1.StatefulSet
- func SyncConfigMap(curr *v1.ConfigMap, next *v1.ConfigMap)
- func SyncService(curr *v1.Service, next *v1.Service)
- func SyncStatefulSet(curr *appsv1.StatefulSet, next *appsv1.StatefulSet)
- type DefaultZookeeperClient
- func (client *DefaultZookeeperClient) Close()
- func (client *DefaultZookeeperClient) Connect(zkUri string) (err error)
- func (client *DefaultZookeeperClient) CreateNode(zoo *v1beta1.ZookeeperCluster, zNodePath string) (err error)
- func (client *DefaultZookeeperClient) NodeExists(zNodePath string) (version int32, err error)
- func (client *DefaultZookeeperClient) UpdateNode(path string, data string, version int32) (err error)
- type ZookeeperClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeAdminServerService ¶ added in v0.2.10
func MakeAdminServerService(z *v1beta1.ZookeeperCluster) *v1.Service
MakeAdminServerService returns a service which provides an interface to access the zookeeper admin server port
func MakeClientService ¶
func MakeClientService(z *v1beta1.ZookeeperCluster) *v1.Service
MakeClientService returns a client service resource for the zookeeper cluster
func MakeConfigMap ¶
func MakeConfigMap(z *v1beta1.ZookeeperCluster) *v1.ConfigMap
MakeConfigMap returns a zookeeper config map
func MakeHeadlessService ¶
func MakeHeadlessService(z *v1beta1.ZookeeperCluster) *v1.Service
MakeHeadlessService returns an internal headless-service for the zk stateful-set
func MakePodDisruptionBudget ¶
func MakePodDisruptionBudget(z *v1beta1.ZookeeperCluster) *policyv1.PodDisruptionBudget
MakePodDisruptionBudget returns a pdb for the zookeeper cluster
func MakeServiceAccount ¶ added in v0.2.9
func MakeServiceAccount(z *v1beta1.ZookeeperCluster) *v1.ServiceAccount
MakeServiceAccount returns the service account for zookeeper Cluster
func MakeStatefulSet ¶
func MakeStatefulSet(z *v1beta1.ZookeeperCluster) *appsv1.StatefulSet
MakeStatefulSet return a zookeeper stateful set from the zk spec
func SyncConfigMap ¶
SyncConfigMap synchronizes a configmap with an updated spec and validates it
func SyncService ¶
SyncService synchronizes a service with an updated spec and validates it
func SyncStatefulSet ¶
func SyncStatefulSet(curr *appsv1.StatefulSet, next *appsv1.StatefulSet)
SyncStatefulSet synchronizes any updates to the stateful-set
Types ¶
type DefaultZookeeperClient ¶ added in v0.2.6
type DefaultZookeeperClient struct {
// contains filtered or unexported fields
}
func (*DefaultZookeeperClient) Close ¶ added in v0.2.6
func (client *DefaultZookeeperClient) Close()
func (*DefaultZookeeperClient) Connect ¶ added in v0.2.6
func (client *DefaultZookeeperClient) Connect(zkUri string) (err error)
func (*DefaultZookeeperClient) CreateNode ¶ added in v0.2.6
func (client *DefaultZookeeperClient) CreateNode(zoo *v1beta1.ZookeeperCluster, zNodePath string) (err error)
func (*DefaultZookeeperClient) NodeExists ¶ added in v0.2.6
func (client *DefaultZookeeperClient) NodeExists(zNodePath string) (version int32, err error)
func (*DefaultZookeeperClient) UpdateNode ¶ added in v0.2.6
func (client *DefaultZookeeperClient) UpdateNode(path string, data string, version int32) (err error)