failoverbuilder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageVolumeName      = builder.ValkeyDataVolumeName
	StorageVolumeMountPath = builder.ValkeyDataVolumeDefaultMountPath

	ConfigVolumeName      = "conf"
	ConfigVolumeMountPath = "/etc/valkey"

	ValkeyTempVolumeName      = "temp"
	ValkeyTempVolumeMountPath = "/tmp"

	TLSVolumeName      = builder.ValkeyTLSVolumeName
	TLSVolumeMountPath = builder.ValkeyTLSVolumeDefaultMountPath

	ValkeyPasswordVolumeName = "valkey-auth" //#nosec
	PasswordVolumeMountPath  = "/account"

	ValkeyOptVolumeName      = "valkey-opt"
	ValkeyOptVolumeMountPath = "/opt"

	MonitorOperatorSecretName = "MONITOR_OPERATOR_SECRET_NAME"
)

Variables

This section is empty.

Functions

func ConfigMapName

func ConfigMapName(name string) string

func FailoverStatefulSetName

func FailoverStatefulSetName(sentinelName string) string

func GenerateCommonLabels

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

func GenerateConfigMap

func GenerateConfigMap(inst types.FailoverInstance) (*corev1.ConfigMap, error)

func GenerateExporterService

func GenerateExporterService(rf *v1alpha1.Failover) *corev1.Service

func GeneratePodNodePortService

func GeneratePodNodePortService(rf *v1alpha1.Failover, index int, nodePort int32) *corev1.Service

func GeneratePodService

func GeneratePodService(rf *v1alpha1.Failover, index int) *corev1.Service

GeneratePodService returns a new Service for the given ValkeyFailover and index, with the configed service type

func GenerateReadWriteService

func GenerateReadWriteService(rf *v1alpha1.Failover) *corev1.Service

func GenerateReadonlyService

func GenerateReadonlyService(rf *v1alpha1.Failover) *corev1.Service

func GenerateSelectorLabels

func GenerateSelectorLabels(name string) map[string]string

func GenerateStatefulSet

func GenerateStatefulSet(inst types.FailoverInstance) (*appv1.StatefulSet, error)

func NewFailoverSentinel

func NewFailoverSentinel(inst types.FailoverInstance) *v1alpha1.Sentinel

func NewPodDisruptionBudgetForCR

func NewPodDisruptionBudgetForCR(rf *v1alpha1.Failover) *policyv1.PodDisruptionBudget

func NodePortServiceName

func NodePortServiceName(rf *v1alpha1.Failover, index int) string

func ROServiceName

func ROServiceName(failoverName string) string

func RWServiceName

func RWServiceName(failoverName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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