Documentation
¶
Index ¶
- Constants
- func ConfigMapName(name string) string
- func FailoverStatefulSetName(sentinelName string) string
- func GenerateCommonLabels(name string, extra ...map[string]string) map[string]string
- func GenerateConfigMap(inst types.FailoverInstance) (*corev1.ConfigMap, error)
- func GenerateExporterService(rf *v1alpha1.Failover) *corev1.Service
- func GeneratePodNodePortService(rf *v1alpha1.Failover, index int, nodePort int32) *corev1.Service
- func GeneratePodService(rf *v1alpha1.Failover, index int) *corev1.Service
- func GenerateReadWriteService(rf *v1alpha1.Failover) *corev1.Service
- func GenerateReadonlyService(rf *v1alpha1.Failover) *corev1.Service
- func GenerateSelectorLabels(name string) map[string]string
- func GenerateStatefulSet(inst types.FailoverInstance) (*appv1.StatefulSet, error)
- func NewFailoverSentinel(inst types.FailoverInstance) *v1alpha1.Sentinel
- func NewPodDisruptionBudgetForCR(rf *v1alpha1.Failover) *policyv1.PodDisruptionBudget
- func NodePortServiceName(rf *v1alpha1.Failover, index int) string
- func ROServiceName(failoverName string) string
- func RWServiceName(failoverName string) string
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 FailoverStatefulSetName ¶
func GenerateCommonLabels ¶
func GenerateConfigMap ¶
func GenerateConfigMap(inst types.FailoverInstance) (*corev1.ConfigMap, error)
func GeneratePodService ¶
GeneratePodService returns a new Service for the given ValkeyFailover and index, with the configed service type
func GenerateSelectorLabels ¶
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 ROServiceName ¶
func RWServiceName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.