controllers

package
v0.0.0-...-3bfead5 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const AlertManagerName = "alertmanager"
View Source
const CortexConfigMapNameSuffix = "-config"
View Source
const CortexConfigShasumAnnotationName = "cortex-operator/cortex-config-shasum"
View Source
const CortexConfigTemplate = `
`
View Source
const CortexRuntimeConfigMapNameSuffix = "-runtime-config"
View Source
const FinalizerName = "cortex.opstrace.io/finalizer"
View Source
const GossipRingServiceName = "gossip-ring"
View Source
const RulerName = "ruler"
View Source
const ServiceAccountName = "cortex"

Variables

This section is empty.

Functions

func WithPodAntiAffinity

func WithPodAntiAffinity(name string) *corev1.Affinity

Types

type CortexAlertManagerReconciler

type CortexAlertManagerReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexAlertManagerReconciler reconciles a Cortex object and ensures the Cortex Alert Manager is deployed

func (*CortexAlertManagerReconciler) Reconcile

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexAlertManagerReconciler) SetupWithManager

func (r *CortexAlertManagerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexCompactorReconciler

type CortexCompactorReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexCompactorReconciler reconciles a Cortex object and ensures the Cortex Compactor is deployed

func (*CortexCompactorReconciler) Reconcile

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexCompactorReconciler) SetupWithManager

func (r *CortexCompactorReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexDistributorReconciler

type CortexDistributorReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexDistributorReconciler reconciles a Cortex object and ensures the Cortex Distributors are deployed

func (*CortexDistributorReconciler) Reconcile

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexDistributorReconciler) SetupWithManager

func (r *CortexDistributorReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexIngesterReconciler

type CortexIngesterReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexIngesterReconciler reconciles a Cortex object and ensures the Cortex Ingesters are deployed

func (*CortexIngesterReconciler) Reconcile

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexIngesterReconciler) SetupWithManager

func (r *CortexIngesterReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexQuerierReconciler

type CortexQuerierReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexQuerierReconciler reconciles a Cortex object and ensures the Cortex Queriers are deployed

func (*CortexQuerierReconciler) Reconcile

func (r *CortexQuerierReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexQuerierReconciler) SetupWithManager

func (r *CortexQuerierReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexQueryFrontendReconciler

type CortexQueryFrontendReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexQueryFrontendReconciler reconciles a Cortex object and ensures the Cortex Query Frontend are deployed

func (*CortexQueryFrontendReconciler) Reconcile

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexQueryFrontendReconciler) SetupWithManager

func (r *CortexQueryFrontendReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexReconciler

type CortexReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexReconciler reconciles a Cortex object

func (*CortexReconciler) Reconcile

func (r *CortexReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexReconciler) SetupWithManager

func (r *CortexReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexRulerReconciler

type CortexRulerReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexRulerReconciler reconciles a Cortex object and ensures the Cortex Ruler is deployed

func (*CortexRulerReconciler) Reconcile

func (r *CortexRulerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexRulerReconciler) SetupWithManager

func (r *CortexRulerReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexRuntimeConfigReconciler

type CortexRuntimeConfigReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexRuntimeConfigReconciler reconciles a Cortex object and ensures the Cortex runtime config map is updated accordingly.

func (*CortexRuntimeConfigReconciler) Reconcile

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexRuntimeConfigReconciler) SetupWithManager

func (r *CortexRuntimeConfigReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type CortexStoreGatewayReconciler

type CortexStoreGatewayReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

CortexStoreGatewayReconciler reconciles a Cortex object and ensures the Cortex Store Gateway is deployed

func (*CortexStoreGatewayReconciler) Reconcile

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*CortexStoreGatewayReconciler) SetupWithManager

func (r *CortexStoreGatewayReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type KubernetesResource

type KubernetesResource struct {
	// contains filtered or unexported fields
}

func NewAlertManagerDeployment

func NewAlertManagerDeployment(
	req ctrl.Request,
	cortex *cortexv1alpha1.Cortex,
	spec *cortexv1alpha1.DeploymentSpec,
) *KubernetesResource

func NewAlertManagerService

func NewAlertManagerService(req ctrl.Request) *KubernetesResource

func NewCortexConfigMap

func NewCortexConfigMap(
	req ctrl.Request,
	cortex *cortexv1alpha1.Cortex,
) *KubernetesResource

func NewCortexRuntimeConfigMap

func NewCortexRuntimeConfigMap(
	req ctrl.Request,
	cortex *cortexv1alpha1.Cortex,
) (*KubernetesResource, error)

func NewDeployment

func NewDeployment(
	req ctrl.Request,
	name string,
	cortex *cortexv1alpha1.Cortex,
	spec *cortexv1alpha1.DeploymentSpec,
) *KubernetesResource

func NewGossipRingService

func NewGossipRingService(req ctrl.Request) *KubernetesResource

func NewIngesterStatefulSet

func NewIngesterStatefulSet(
	req ctrl.Request,
	name string,
	cortex *cortexv1alpha1.Cortex,
) *KubernetesResource

func NewMemcachedService

func NewMemcachedService(req ctrl.Request, name string) *KubernetesResource

func NewMemcachedStatefulSet

func NewMemcachedStatefulSet(
	req ctrl.Request,
	name string,
	image string,
	spec *cortexv1alpha1.MemcachedStatefulSetSpec,
) *KubernetesResource

func NewRulerService

func NewRulerService(req ctrl.Request) *KubernetesResource

func NewService

func NewService(req ctrl.Request, name string) *KubernetesResource

func NewServiceAccount

func NewServiceAccount(req ctrl.Request, cortex *cortexv1alpha1.Cortex) *KubernetesResource

func NewStatefulSet

func NewStatefulSet(
	req ctrl.Request,
	name string,
	cortex *cortexv1alpha1.Cortex,
	spec *cortexv1alpha1.StatefulSetSpec,
) *KubernetesResource

type KubernetesResourceReconciler

type KubernetesResourceReconciler struct {
	// contains filtered or unexported fields
}

func (*KubernetesResourceReconciler) Reconcile

type MemcachedReconciler

type MemcachedReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

MemacachedReconciler reconciles a Cortex object and ensures all Memcached resources are deployed

func (*MemcachedReconciler) Reconcile

func (r *MemcachedReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.7.2/pkg/reconcile

func (*MemcachedReconciler) SetupWithManager

func (r *MemcachedReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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