aggregator

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ApiPort = 8686

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator interface {
	client.Object
}

type Controller

type Controller struct {
	client.Client

	Name             string
	Namespace        string
	VectorAggregator Aggregator
	APIVersion       string
	Kind             string
	Spec             *vectorv1alpha1.VectorAggregatorCommon
	Status           *vectorv1alpha1.VectorCommonStatus
	ConfigBytes      []byte
	Config           *config.VectorConfig
	ClientSet        *kubernetes.Clientset
	EventsCollector  *k8sevents.EventsCollector
	// contains filtered or unexported fields
}

func NewController

func NewController(
	v Aggregator,
	c client.Client,
	cs *kubernetes.Clientset,
	evCollector *k8sevents.EventsCollector,
) *Controller

func (*Controller) ConfigReloaderInitContainer

func (ctrl *Controller) ConfigReloaderInitContainer() *corev1.Container

func (*Controller) ConfigReloaderSidecarContainer

func (ctrl *Controller) ConfigReloaderSidecarContainer() *corev1.Container

func (*Controller) DeleteVectorAggregator

func (ctrl *Controller) DeleteVectorAggregator(ctx context.Context) error

func (*Controller) EnsureVectorAggregator

func (ctrl *Controller) EnsureVectorAggregator(ctx context.Context) error

func (*Controller) GetServiceName

func (ctrl *Controller) GetServiceName() string

func (*Controller) SetFailedStatus

func (ctrl *Controller) SetFailedStatus(ctx context.Context, reason string) error

func (*Controller) SetSuccessStatus

func (ctrl *Controller) SetSuccessStatus(ctx context.Context, hash *uint32) error

func (*Controller) VectorAggregatorContainer

func (ctrl *Controller) VectorAggregatorContainer() *corev1.Container

Jump to

Keyboard shortcuts

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