masterCalculation

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package masterCalculation determines the master pod in multi pod kuberhealthy deployments

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateMaster

func CalculateMaster(client *kubernetes.Clientset) (string, error)

CalculateMaster determines which kuberhealthy pod should assume the master role

func DebugAlwaysMasterOn

func DebugAlwaysMasterOn()

DebugAlwaysMasterOn makes all master queries return true without logic

func EnableDebug

func EnableDebug()

EnableDebug enables debug logging

func IAmMaster

func IAmMaster(client *kubernetes.Clientset) (bool, error)

IAmMaster determines if the executing pod is the cluster master or not

Types

This section is empty.

Jump to

Keyboard shortcuts

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