sentinelbuilder

package
v0.0.0-...-3430a5a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedisArchRoleSEN     = "sentinel"
	RedisSentinelSVCPort = 26379
)
View Source
const (
	SentinelConfigVolumeName      = "sentinel-config"
	SentinelConfigVolumeMountPath = "/conf"
	RedisTLSVolumeName            = "redis-tls"
	RedisTLSVolumeMountPath       = "/tls"
	RedisDataVolumeName           = "data"
	RedisDataVolumeMountPath      = "/data"
	RedisAuthName                 = "redis-auth"
	RedisAuthMountPath            = "/account"
	RedisOptName                  = "redis-opt"
	RedisOptMountPath             = "/opt"
	OperatorUsername              = "OPERATOR_USERNAME"
	OperatorSecretName            = "OPERATOR_SECRET_NAME"
	SentinelContainerName         = "sentinel"
	SentinelContainerPortName     = "sentinel"
)
View Source
const (
	SentinelConfigFileName = "sentinel.conf"
)

Variables

This section is empty.

Functions

func GenerateSelectorLabels

func GenerateSelectorLabels(component, name string) map[string]string

func GetCommonLabels

func GetCommonLabels(name string, extra ...map[string]string) map[string]string

func GetSentinelConfigMapName

func GetSentinelConfigMapName(name string) string

func GetSentinelHeadlessServiceName

func GetSentinelHeadlessServiceName(sentinelName string) string

func GetSentinelNodeServiceName

func GetSentinelNodeServiceName(sentinelName string, i int) string

func GetSentinelServiceName

func GetSentinelServiceName(sentinelName string) string

func GetSentinelStatefulSetName

func GetSentinelStatefulSetName(sentinelName string) string

func NewCertificate

func NewCertificate(sen *v1.RedisSentinel, selectors map[string]string) *certv1.Certificate

NewCertificate

func NewPodDisruptionBudget

func NewPodDisruptionBudget(sen *databasesv1.RedisSentinel, selectors map[string]string) *policyv1.PodDisruptionBudget

func NewPodNodePortService

func NewPodNodePortService(sen *v1.RedisSentinel, index int, selectors map[string]string, nodePort int32) *corev1.Service

func NewPodService

func NewPodService(sen *v1.RedisSentinel, index int, selectors map[string]string) *corev1.Service

NewPodService returns a new Service for the given RedisFailover and index, with the configed service type

func NewSentinelConfigMap

func NewSentinelConfigMap(sen *v1.RedisSentinel, selectors map[string]string) (*corev1.ConfigMap, error)

func NewSentinelHeadlessServiceForCR

func NewSentinelHeadlessServiceForCR(inst *v1.RedisSentinel, selectors map[string]string) *corev1.Service

func NewSentinelServiceForCR

func NewSentinelServiceForCR(inst *v1.RedisSentinel, selectors map[string]string) *corev1.Service

func NewSentinelStatefulset

func NewSentinelStatefulset(sen types.RedisSentinelInstance, selectors map[string]string) *appv1.StatefulSet

Types

This section is empty.

Jump to

Keyboard shortcuts

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