util

package
v0.0.0-...-cb4c79d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanServeService

func CanServeService(endpoints *apiv1.Endpoints) bool

func CreateKubeResource

func CreateKubeResource(kubeClient kubernetes.Interface, namespace string, obj runtime.Object) (err error)

func GetMasterIPByName

func GetMasterIPByName(client *redis.Client, name string) (string, error)

func GetSeedMasterIP

func GetSeedMasterIP(podLister v1lister.PodLister, namespace, name string) (string, error)

func GetSlaveCount

func GetSlaveCount(client *redis.Client, name string) int

func InClusterConfig

func InClusterConfig() (*rest.Config, error)

func InPodPhase

func InPodPhase(phase apiv1.PodPhase, pod *apiv1.Pod) bool

func IsPodReady

func IsPodReady(pod *apiv1.Pod) bool

func NewSentinelRedisClient

func NewSentinelRedisClient(name string) *redis.Client

func ResourceAlreadyExistError

func ResourceAlreadyExistError(err error) bool

func ResourceNotFoundError

func ResourceNotFoundError(err error) bool

func WaitForResourceToBeEstablished

func WaitForResourceToBeEstablished(retries int, resourceFunc func() (bool, error)) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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