spec

package
v0.0.0-...-cb4c79d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisPort                      = 6379
	RedisSentinelPort              = 26379
	MasterPodName                  = "redis-master-%s"
	MasterServiceName              = "redis-master-%s"
	SentinelServiceName            = "redis-sentinel-%s"
	SentinelDeploymentName         = "redis-sentinel-%s"
	SlaveStatefulSetName           = "redis-slave-%s"
	SlavePersistentVolumeClaimName = "slave-persistent-storage"
	OperatorLabel                  = "redis_operator"
	SentinelConfigMapName          = "sentinel-config-%s"
	ConfigVolumeName               = "config"
	DataVolumeName                 = "data"
	ConfigMapConfKeyName           = "redis.conf"
	ConfMountPath                  = "/usr/local/etc/redis"
	DataMountPath                  = "/data"
)

Variables

This section is empty.

Functions

func DefaultSentinelConfig

func DefaultSentinelConfig(redis *v1.Redis) *apiv1.ConfigMap

func GetMasterPodName

func GetMasterPodName(name string) string

func GetMasterServiceName

func GetMasterServiceName(name string) string

func GetRedisMasterName

func GetRedisMasterName(redis *v1.Redis) string

func GetSentinelConfigMapName

func GetSentinelConfigMapName(name string) string

func GetSentinelDeploymentName

func GetSentinelDeploymentName(name string) string

func GetSentinelServiceName

func GetSentinelServiceName(name string) string

func GetSlaveStatefulSetName

func GetSlaveStatefulSetName(name string) string

func GetVolumeMounts

func GetVolumeMounts() []apiv1.VolumeMount

func MasterSeedPod

func MasterSeedPod(owner *v1.Redis) *apiv1.Pod

func MasterService

func MasterService(owner *cr.Redis) *apiv1.Service

func MasterServiceEndpoint

func MasterServiceEndpoint(owner *cr.Redis, IPAddress string) *apiv1.Endpoints

func RedisContainer

func RedisContainer(baseImage, version string) apiv1.Container

func RedisMaster

func RedisMaster(redis apiv1.Container) apiv1.Container

func RedisSentinel

func RedisSentinel(container apiv1.Container) apiv1.Container

func RedisSlave

func RedisSlave(redis apiv1.Container, spec *v1.Redis) apiv1.Container

func SentinelDeployment

func SentinelDeployment(owner *v1.Redis) *appsv1beta1.Deployment

func SentinelLabelSelector

func SentinelLabelSelector(redis *v1.Redis) map[string]string

func SentinelService

func SentinelService(owner *cr.Redis) *apiv1.Service

func SlaveLabelSelector

func SlaveLabelSelector(redis *v1.Redis) map[string]string

func SlaveStatefulSet

func SlaveStatefulSet(owner *v1.Redis) *appsv1beta1.StatefulSet

Types

This section is empty.

Jump to

Keyboard shortcuts

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