common

package
v0.1.4-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FileStorageTypeLabelKey is the key for PVC labels that indicate the type of file storage.
	FileStorageTypeLabelKey = "app.greptime.io/fileStorageType"
)

Variables

This section is empty.

Functions

func GenerateConfigMap

func GenerateConfigMap(namespace, name string, kind v1alpha1.ComponentKind, configData []byte) (*corev1.ConfigMap, error)

func GeneratePodMonitor

func GeneratePodMonitor(namespace, name string, kind v1alpha1.ComponentKind, promSpec *v1alpha1.PrometheusMonitorSpec) (*monitoringv1.PodMonitor, error)

func GeneratePodTemplateSpec

func GeneratePodTemplateSpec(kind v1alpha1.ComponentKind, template *v1alpha1.PodTemplateSpec) *corev1.PodTemplateSpec

func GetPVCs

func GetPVCs(ctx context.Context, k8sClient client.Client, namespace, name string, kind v1alpha1.ComponentKind, fsType FileStorageType) ([]corev1.PersistentVolumeClaim, error)

func LogsPipelineName added in v0.1.1

func LogsPipelineName(namespace, name string) string

func MonitoringServiceName added in v0.1.1

func MonitoringServiceName(name string) string

func MountConfigDir

func MountConfigDir(name string, kind v1alpha1.ComponentKind, template *corev1.PodTemplateSpec)

func ResourceName

func ResourceName(name string, componentKind v1alpha1.ComponentKind) string

Types

type FileStorageType

type FileStorageType string
const (
	FileStorageTypeDatanode FileStorageType = "datanode"
	FileStorageTypeWAL      FileStorageType = "wal"
	FileStorageTypeCache    FileStorageType = "cache"
)

Jump to

Keyboard shortcuts

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