store

package
v0.0.0-...-ad2a1b2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Name is the name of the Thanos Store component.
	Name = "thanos-store"

	// ComponentName is the name of the Thanos Store component.
	ComponentName = "object-storage-gateway"

	// HTTPPortName is the name of the HTTP port for the Thanos Store components.
	HTTPPortName = "http"
	// HTTPPort is the port number for the HTTP port for the Thanos Store components.
	HTTPPort = 10902
	// GRPCPortName is the name of the gRPC port for the Thanos Store components.
	GRPCPortName = "grpc"
	// GRPCPort is the port number for the gRPC port for the Thanos Store components.
	GRPCPort = 10901
)

Variables

This section is empty.

Functions

func GetLabels

func GetLabels(opts Options) map[string]string

GetLabels returns the labels that will be set as ObjectMeta labels for store resources.

func GetRequiredLabels

func GetRequiredLabels() map[string]string

GetRequiredLabels returns a map of labels that can be used to look up store resources. These labels are guaranteed to be present on all resources created by this package.

func GetRequiredStoreServiceLabel

func GetRequiredStoreServiceLabel() map[string]string

GetRequiredStoreServiceLabel returns the minimum set of labels that can be used to look up Services that implement the Store API. Implementations of manifests.Buildable that provide Store API services should include these labels in their Service ObjectMeta.

func NewStoreService

func NewStoreService(opts Options) *corev1.Service

NewStoreService creates a new Service for Thanos Store shard.

func NewStoreStatefulSet

func NewStoreStatefulSet(opts Options) *appsv1.StatefulSet

NewStoreStatefulSet creates a new StatefulSet for the Thanos Store.

Types

type Options

type Options struct {
	manifests.Options
	StorageSize              resource.Quantity
	ObjStoreSecret           corev1.SecretKeySelector
	IndexCacheConfig         manifests.CacheConfig
	CachingBucketConfig      manifests.CacheConfig
	IgnoreDeletionMarksDelay manifests.Duration
	Min, Max                 manifests.Duration
	RelabelConfigs           manifests.RelabelConfigs
	ShardIndex               *int32
}

Options for Thanos Store components Name is the name of the Thanos Store component

func (Options) Build

func (opts Options) Build() []client.Object

Build builds Thanos Store shards.

func (Options) GetGeneratedResourceName

func (opts Options) GetGeneratedResourceName() string

GetGeneratedResourceName returns the name of the Thanos Store component. If a shard index is provided, the name will be suffixed with the shard index.

func (Options) GetSelectorLabels

func (opts Options) GetSelectorLabels() map[string]string

GetSelectorLabels returns a map of labels that can be used to select store resources.

Jump to

Keyboard shortcuts

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