zk

package
v0.2.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 7

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

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

func SyncConfigMap(curr *v1.ConfigMap, next *v1.ConfigMap)

SyncConfigMap synchronizes a configmap with an updated spec and validates it

func SyncService

func SyncService(curr *v1.Service, next *v1.Service)

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)

type ZookeeperClient added in v0.2.6

type ZookeeperClient interface {
	Connect(string) error
	CreateNode(*v1beta1.ZookeeperCluster, string) error
	NodeExists(string) (int32, error)
	UpdateNode(string, string, int32) error
	Close()
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL