sentinelbuilder

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: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SentinelConfigVolumeName      = "sentinel-config"
	SentinelConfigVolumeMountPath = "/etc/valkey"

	ValkeyTLSVolumeName      = builder.ValkeyTLSVolumeName
	ValkeyTLSVolumeMountPath = builder.ValkeyTLSVolumeDefaultMountPath

	ValkeyDataVolumeName      = builder.ValkeyDataVolumeName
	ValkeyDataVolumeMountPath = builder.ValkeyDataVolumeDefaultMountPath

	ValkeyAuthName      = "valkey-auth"
	ValkeyAuthMountPath = "/account"

	ValkeyOptName      = "valkey-opt"
	ValkeyOptMountPath = "/opt"

	SentinelContainerName     = "sentinel"
	SentinelContainerPortName = "sentinel"
)
View Source
const (
	SentinelConfigFileName = "sentinel.conf"
)

Variables

This section is empty.

Functions

func GenerateCommonLabels

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

func GeneratePodNodePortService

func GeneratePodNodePortService(sen *v1alpha1.Sentinel, index int, nodePort int32) *corev1.Service

func GeneratePodService

func GeneratePodService(sen *v1alpha1.Sentinel, index int) *corev1.Service

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

func GenerateSelectorLabels

func GenerateSelectorLabels(name string) map[string]string

func GenerateSentinelConfigMap

func GenerateSentinelConfigMap(inst types.SentinelInstance) (*corev1.ConfigMap, error)

func GenerateSentinelHeadlessService

func GenerateSentinelHeadlessService(inst *v1alpha1.Sentinel) *corev1.Service

func GenerateSentinelStatefulset

func GenerateSentinelStatefulset(inst types.SentinelInstance) (*appv1.StatefulSet, error)

func NewPodDisruptionBudget

func NewPodDisruptionBudget(sen *v1alpha1.Sentinel) *policyv1.PodDisruptionBudget

func SentinelConfigMapName

func SentinelConfigMapName(name string) string

func SentinelHeadlessServiceName

func SentinelHeadlessServiceName(sentinelName string) string

func SentinelPodServiceName

func SentinelPodServiceName(sentinelName string, i int) string

func SentinelStatefulSetName

func SentinelStatefulSetName(sentinelName 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