statefulsets

package
v0.2.6-0...-5969fc5 Latest Latest
Warning

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

Go to latest
Published: May 14, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExporterContainerName = "exporter"
)

Variables

This section is empty.

Functions

func ClusterHeadlessSvcName

func ClusterHeadlessSvcName(name string, i int) string

func ClusterStatefulSetName

func ClusterStatefulSetName(clusterName string, i int) string

func GetClusterPassword

func GetClusterPassword(client client.Client, cluster *redisv1alpha1.DistributedRedisCluster) (string, error)

GetClusterPassword return current redis cluster's password.

func GetOldRedisClusterPassword

func GetOldRedisClusterPassword(client client.Client, sts *appsv1.StatefulSet) (string, error)

GetOldRedisClusterPassword return old redis cluster's password.

func IsPasswordChanged

func IsPasswordChanged(cluster *redisv1alpha1.DistributedRedisCluster, sts *appsv1.StatefulSet) bool

IsPasswordChanged determine whether the password is changed.

func NewStatefulSetForCR

func NewStatefulSetForCR(cluster *redisv1alpha1.DistributedRedisCluster, ssName, svcName string,
	labels map[string]string) (*appsv1.StatefulSet, error)

NewStatefulSetForCR creates a new StatefulSet for the given Cluster.

Types

This section is empty.

Jump to

Keyboard shortcuts

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