Documentation
¶
Index ¶
- Constants
- func GenerateCommonLabels(name string, extra ...map[string]string) map[string]string
- func GeneratePodNodePortService(sen *v1alpha1.Sentinel, index int, nodePort int32) *corev1.Service
- func GeneratePodService(sen *v1alpha1.Sentinel, index int) *corev1.Service
- func GenerateSelectorLabels(name string) map[string]string
- func GenerateSentinelConfigMap(inst types.SentinelInstance) (*corev1.ConfigMap, error)
- func GenerateSentinelHeadlessService(inst *v1alpha1.Sentinel) *corev1.Service
- func GenerateSentinelStatefulset(inst types.SentinelInstance) (*appv1.StatefulSet, error)
- func NewPodDisruptionBudget(sen *v1alpha1.Sentinel) *policyv1.PodDisruptionBudget
- func SentinelConfigMapName(name string) string
- func SentinelHeadlessServiceName(sentinelName string) string
- func SentinelPodServiceName(sentinelName string, i int) string
- func SentinelStatefulSetName(sentinelName string) string
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 GeneratePodService ¶
GeneratePodService returns a new Service for the given ValkeyFailover and index, with the configed service type
func GenerateSelectorLabels ¶
func GenerateSentinelConfigMap ¶
func GenerateSentinelConfigMap(inst types.SentinelInstance) (*corev1.ConfigMap, error)
func GenerateSentinelStatefulset ¶
func GenerateSentinelStatefulset(inst types.SentinelInstance) (*appv1.StatefulSet, error)
func NewPodDisruptionBudget ¶
func NewPodDisruptionBudget(sen *v1alpha1.Sentinel) *policyv1.PodDisruptionBudget
func SentinelConfigMapName ¶
func SentinelPodServiceName ¶
func SentinelStatefulSetName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.