Documentation ¶
Index ¶
- Constants
- func FileStorageToPVC(fs v1alpha1.FileStorageAccessor, fsType FileStorageType) *corev1.PersistentVolumeClaim
- func GenerateConfigMap(namespace, name string, kind v1alpha1.ComponentKind, configData []byte) (*corev1.ConfigMap, error)
- func GeneratePodMonitor(namespace, name string, kind v1alpha1.ComponentKind, ...) (*monitoringv1.PodMonitor, error)
- func GeneratePodTemplateSpec(kind v1alpha1.ComponentKind, template *v1alpha1.PodTemplateSpec) *corev1.PodTemplateSpec
- func GetPVCs(ctx context.Context, k8sClient client.Client, namespace, name string, ...) ([]corev1.PersistentVolumeClaim, error)
- func LogsPipelineName(namespace, name string) string
- func MonitoringServiceName(name string) string
- func MountConfigDir(name string, kind v1alpha1.ComponentKind, template *corev1.PodTemplateSpec)
- func ResourceName(name string, componentKind v1alpha1.ComponentKind) string
- type FileStorageType
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 FileStorageToPVC ¶
func FileStorageToPVC(fs v1alpha1.FileStorageAccessor, fsType FileStorageType) *corev1.PersistentVolumeClaim
func GenerateConfigMap ¶
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 MonitoringServiceName ¶ added in v0.1.1
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" )
Click to show internal directories.
Click to hide internal directories.