Documentation ¶
Index ¶
- Constants
- func ClusterIsUp(cluster *v1alpha1.DistributedRedisCluster) bool
- func GenerateClusterRedisByManagerUI(cluster *v1alpha1.DistributedRedisCluster, scheme *runtime.Scheme, ...) *v1.Redis
- func GenerateFailoverRedisByManagerUI(failover *redisfailover.RedisFailover, sts *appsv1.StatefulSet, ...) *v1.Redis
- func GenerateRedisCluster(instance *v1.Redis, bv *vc.BundleVersion) (*v1alpha1.DistributedRedisCluster, error)
- func GenerateRedisFailover(instance *v1.Redis, bv *vc.BundleVersion) (*redisfailover.RedisFailover, error)
- func GetRedisClusterLabels(instanceName, clusterName string) map[string]string
- func GetRedisClusterName(instanceName string) string
- func GetRedisConfigsApplyPolicyByVersion(ver string) map[string]ApplyPolicy
- func GetRedisFailoverName(instanceName string) string
- func GetRedisSentinelLabels(instanceName, failoverName string) map[string]string
- func GetRedisStorageVolumeName(instanceName string) string
- func GetRedisVersion(image string) string
- func GetShardMaxPVCQuantity(ctx context.Context, client ctrlClient.Client, namespace string, ...) (*resource.Quantity, error)
- func MergeAnnotations(t, s map[string]string) map[string]string
- func ResizePVCs(ctx context.Context, client ctrlClient.Client, namespace string, ...) error
- func ShouldUpdateCluster(cluster, newCluster *v1alpha1.DistributedRedisCluster, logger logr.Logger) bool
- func ShouldUpdateFailover(failover, newFailover *redisfailover.RedisFailover, logger logr.Logger) bool
- type ApplyPolicy
Constants ¶
View Source
const ( RedisFailoverType = "redis-failover" RedisClusterType = "distributed-redis-cluster" )
View Source
const ( // storage StorageProvisionerKey = "volume.beta.kubernetes.io/storage-provisioner" TopoLVMProvisionerKey = "topolvm.cybozu.com" )
View Source
const (
ControllerVersionLabel = "controllerVersion"
)
View Source
const (
PauseAnnotationKey = "app.cpaas.io/pause-timestamp"
)
Variables ¶
This section is empty.
Functions ¶
func ClusterIsUp ¶
func ClusterIsUp(cluster *v1alpha1.DistributedRedisCluster) bool
func GenerateFailoverRedisByManagerUI ¶
func GenerateFailoverRedisByManagerUI(failover *redisfailover.RedisFailover, sts *appsv1.StatefulSet, secret *corev1.Secret) *v1.Redis
func GenerateRedisCluster ¶
func GenerateRedisCluster(instance *v1.Redis, bv *vc.BundleVersion) (*v1alpha1.DistributedRedisCluster, error)
func GenerateRedisFailover ¶
func GenerateRedisFailover(instance *v1.Redis, bv *vc.BundleVersion) (*redisfailover.RedisFailover, error)
func GetRedisClusterLabels ¶
func GetRedisClusterName ¶
func GetRedisConfigsApplyPolicyByVersion ¶
func GetRedisConfigsApplyPolicyByVersion(ver string) map[string]ApplyPolicy
func GetRedisFailoverName ¶
func GetRedisSentinelLabels ¶
func GetRedisVersion ¶
func GetShardMaxPVCQuantity ¶
func ResizePVCs ¶
func ShouldUpdateCluster ¶
func ShouldUpdateCluster(cluster, newCluster *v1alpha1.DistributedRedisCluster, logger logr.Logger) bool
func ShouldUpdateFailover ¶
func ShouldUpdateFailover(failover, newFailover *redisfailover.RedisFailover, logger logr.Logger) bool
Types ¶
type ApplyPolicy ¶
type ApplyPolicy string
const ( Unsupported ApplyPolicy = "Unsupported" RestartApply ApplyPolicy = "RestartApply" )
Click to show internal directories.
Click to hide internal directories.