Documentation
¶
Index ¶
- Constants
- func ClusterHeadlessSvcName(name string, i int) string
- func ClusterNodeServiceName(clusterName string, shard, repl int) string
- func ClusterStatefulSetName(name string, i int) string
- func GenerateClusterLabels(name string, extra map[string]string) map[string]string
- func GenerateClusterStatefulSetLabels(name string, index int, extra ...map[string]string) map[string]string
- func GenerateClusterStatefulSetSelectors(name string, index int) map[string]string
- func GenerateHeadlessService(cluster *v1alpha1.Cluster, index int) *corev1.Service
- func GenerateInstanceService(cluster *v1alpha1.Cluster) *corev1.Service
- func GenerateNodePortSerivce(cluster *v1alpha1.Cluster, name string, labels map[string]string, port int32) *corev1.Service
- func GeneratePodDisruptionBudget(cluster types.ClusterInstance, index int) *policyv1.PodDisruptionBudget
- func GeneratePodService(cluster *v1alpha1.Cluster, name string, typ corev1.ServiceType, ...) *corev1.Service
- func GenerateStatefulSet(inst types.ClusterInstance, index int) (*appsv1.StatefulSet, error)
- func NewConfigMapForCR(cluster types.ClusterInstance) (*corev1.ConfigMap, error)
- func ValkeyConfigMapName(clusterName string) string
Constants ¶
View Source
const ( TLSVolumeName = builder.ValkeyTLSVolumeName TLSVolumeMountPath = builder.ValkeyTLSVolumeDefaultMountPath StorageVolumeName = builder.ValkeyDataVolumeName StorageVolumeMountPath = builder.ValkeyDataVolumeDefaultMountPath ValkeyTempVolumeName = "temp" ValkeyTempVolumeMountPath = "/tmp" ValkeyPasswordVolumeName = "valkey-auth" //#nosec PasswordVolumeMountPath = "/account" ConfigVolumeName = "conf" ConfigVolumeMountPath = "/etc/valkey" ValkeyOptVolumeName = "valkey-opt" ValkeyOptVolumeMountPath = "/opt" )
Variables ¶
This section is empty.
Functions ¶
func ClusterHeadlessSvcName ¶
func ClusterNodeServiceName ¶
func ClusterStatefulSetName ¶
func GenerateClusterLabels ¶
GenerateClusterStaticLabels extra labels will override by the static labels
func GenerateClusterStatefulSetLabels ¶
func GenerateClusterStatefulSetLabels(name string, index int, extra ...map[string]string) map[string]string
GenerateClusterStatefulSetLabels
func GenerateClusterStatefulSetSelectors ¶
GenerateClusterStatefulSetSelectors
func GenerateHeadlessService ¶
GenerateHeadlessService creates a new headless service for the given Cluster.
func GenerateInstanceService ¶
func GenerateNodePortSerivce ¶
func GeneratePodDisruptionBudget ¶
func GeneratePodDisruptionBudget(cluster types.ClusterInstance, index int) *policyv1.PodDisruptionBudget
func GeneratePodService ¶
func GenerateStatefulSet ¶
func GenerateStatefulSet(inst types.ClusterInstance, index int) (*appsv1.StatefulSet, error)
GenerateStatefulSet creates a new StatefulSet for the given Cluster.
func NewConfigMapForCR ¶
func NewConfigMapForCR(cluster types.ClusterInstance) (*corev1.ConfigMap, error)
NewConfigMapForCR creates a new ConfigMap for the given Cluster
func ValkeyConfigMapName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.