resource

package
Version: v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JobPreparer JobType = "preparer"
	JobMonitor          = "monitor"
	JobCleaner          = "cleaner"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JobType

type JobType string

type ResourceFactory

type ResourceFactory interface {
	PreparerJobName() string
	MonitorJobName() string
	CleanerJobName() string
	WorkerName() string
	PrometheusName() string

	NewPreparerJob() (*batchv1.Job, error)
	NewCleanerJob() (*batchv1.Job, error)
	NewMonitorJob() (*batchv1.Job, error)
	NewMonitorConfigMap() (*corev1.ConfigMap, error)
	NewWorkerDeployment() (*appsv1.Deployment, error)
	NewWorkerService() (*corev1.Service, error)
	NewPrometheusPod(serviceAccountName, release string) (*corev1.Pod, error)
	NewPrometheusService() (*corev1.Service, error)
	NewPrometheusConfigMap() (*corev1.ConfigMap, error)
}

func NewFactory

func NewFactory(lotus *lotusv1beta1.Lotus, configFile string) ResourceFactory

type StaticResourceFactory

type StaticResourceFactory interface {
	ThanosStoreName() string
	ThanosQueryName() string
	ThanosPeerName() string
	TimeSeriesStoreConfigSecretName() string

	NewThanosStoreStatefulSet() (*appsv1.StatefulSet, error)
	NewThanosQueryDeployment() (*appsv1.Deployment, error)
	NewThanosQueryService() (*corev1.Service, error)
	NewThanosPeerService() (*corev1.Service, error)
	NewTimeSeriesStoreConfigSecret() (*corev1.Secret, error)
}

func NewStaticResourceFactory

func NewStaticResourceFactory(namespace, release, configFile string, owners []metav1.OwnerReference) StaticResourceFactory

type ThanosGCSConfig

type ThanosGCSConfig struct {
	Bucket string `json:"bucket"`
}

type ThanosStore

type ThanosStore struct {
	Type   string      `json:"type"`
	Config interface{} `json:"config"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL