Documentation
¶
Index ¶
- Constants
- func GenerateSelectorLabels(component, name string) map[string]string
- func GetCommonLabels(name string, extra ...map[string]string) map[string]string
- func GetSentinelConfigMapName(name string) string
- func GetSentinelHeadlessServiceName(sentinelName string) string
- func GetSentinelNodeServiceName(sentinelName string, i int) string
- func GetSentinelServiceName(sentinelName string) string
- func GetSentinelStatefulSetName(sentinelName string) string
- func NewCertificate(sen *v1.RedisSentinel, selectors map[string]string) *certv1.Certificate
- func NewPodDisruptionBudget(sen *databasesv1.RedisSentinel, selectors map[string]string) *policyv1.PodDisruptionBudget
- func NewPodNodePortService(sen *v1.RedisSentinel, index int, selectors map[string]string, nodePort int32) *corev1.Service
- func NewPodService(sen *v1.RedisSentinel, index int, selectors map[string]string) *corev1.Service
- func NewSentinelConfigMap(sen *v1.RedisSentinel, selectors map[string]string) (*corev1.ConfigMap, error)
- func NewSentinelHeadlessServiceForCR(inst *v1.RedisSentinel, selectors map[string]string) *corev1.Service
- func NewSentinelServiceForCR(inst *v1.RedisSentinel, selectors map[string]string) *corev1.Service
- func NewSentinelStatefulset(sen types.RedisSentinelInstance, selectors map[string]string) *appv1.StatefulSet
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 GetCommonLabels ¶
func GetSentinelServiceName ¶
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 NewPodService ¶
NewPodService returns a new Service for the given RedisFailover and index, with the configed service type
func NewSentinelConfigMap ¶
func NewSentinelServiceForCR ¶
func NewSentinelStatefulset ¶
func NewSentinelStatefulset(sen types.RedisSentinelInstance, selectors map[string]string) *appv1.StatefulSet
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.