Documentation ¶
Index ¶
- Constants
- Variables
- func BuildInfos()
- func GetKubeNodes(ctx context.Context, kubeClient client.Client, nodeSelector map[string]string) ([]corev1.Node, error)
- func GetNbPodsToCreate(cluster *rapi.RedisCluster) int32
- func GetZone(nodeName string, kubeNodes []corev1.Node) string
- func GetZoneSkew(zoneToNodes map[string][]string) int
- func GetZoneSkewByRole(zoneToPrimaries map[string][]string, zoneToReplicas map[string][]string) (int, int, bool)
- func GetZones(nodes []corev1.Node) []string
- func IsPodReady(pod *corev1.Pod) (bool, error)
- func ListPods(ctx context.Context, kubeClient client.Client, opts []client.ListOption) ([]corev1.Pod, error)
- func SliceJoin(a []Stringer, sep string) string
- func StringToByteString(value string) (string, error)
- func ZoneToRole(nodes []rapi.RedisClusterNode) (map[string][]string, map[string][]string)
- type LogWriter
- type Stringer
Constants ¶
View Source
const ( Kilobyte = 1000 Kibibyte = 1024 )
Variables ¶
View Source
var BUILDTIME string
View Source
var OPERATOR_VERSION string
View Source
var REDIS_VERSION string
View Source
var REVISION string
Functions ¶
func GetKubeNodes ¶
func GetNbPodsToCreate ¶
func GetNbPodsToCreate(cluster *rapi.RedisCluster) int32
func GetZoneSkew ¶
func GetZoneSkewByRole ¶
func IsPodReady ¶
IsPodReady check if pod is in ready condition, return the error message otherwise
func SliceJoin ¶
SliceJoin concatenates the elements of a to create a single string. The separator string sep is placed between elements in the resulting string.
func StringToByteString ¶
func ZoneToRole ¶
Types ¶
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
LogWriter struct representation of a log writter, containing the pointer of the logging function
func NewLogWriter ¶
func NewLogWriter(f func(args ...interface{})) *LogWriter
NewLogWriter create a new LogWriter with the pointer of the logging function in input
Click to show internal directories.
Click to hide internal directories.