Documentation ¶
Index ¶
- Constants
- func ClusterHeadlessSvcName(name string, i int) string
- func ClusterStatefulSetName(clusterName string, i int) string
- func GetClusterPassword(client client.Client, cluster *redisv1alpha1.DistributedRedisCluster) (string, error)
- func GetOldRedisClusterPassword(client client.Client, sts *appsv1.StatefulSet) (string, error)
- func IsPasswordChanged(cluster *redisv1alpha1.DistributedRedisCluster, sts *appsv1.StatefulSet) bool
- func NewStatefulSetForCR(cluster *redisv1alpha1.DistributedRedisCluster, ssName, svcName string, ...) (*appsv1.StatefulSet, error)
Constants ¶
View Source
const (
ExporterContainerName = "exporter"
)
Variables ¶
This section is empty.
Functions ¶
func ClusterHeadlessSvcName ¶
func ClusterStatefulSetName ¶
func GetClusterPassword ¶
func GetClusterPassword(client client.Client, cluster *redisv1alpha1.DistributedRedisCluster) (string, error)
GetClusterPassword return current redis cluster's password.
func GetOldRedisClusterPassword ¶
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.
Click to show internal directories.
Click to hide internal directories.