reconcile

package
v1.51.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package reconcile contains reconciliation logic for OpenTelemetry Collector components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMaps

func ConfigMaps(ctx context.Context, params Params) error

ConfigMaps reconciles the config map(s) required for the instance in the current context.

func DaemonSets

func DaemonSets(ctx context.Context, params Params) error

DaemonSets reconciles the daemon set(s) required for the instance in the current context.

func Deployments

func Deployments(ctx context.Context, params Params) error

Deployments reconciles the deployment(s) required for the instance in the current context.

func HorizontalPodAutoscalers added in v0.46.0

func HorizontalPodAutoscalers(ctx context.Context, params Params) error

HorizontalPodAutoscaler reconciles HorizontalPodAutoscalers if autoscale is true and replicas is nil.

func ReplaceConfig added in v0.35.0

func ReplaceConfig(params Params) (string, error)

func Self

func Self(ctx context.Context, params Params) error

Self updates this instance's self data. This should be the last item in the reconciliation, as it causes changes making params.Instance obsolete. Default values should be set in the Defaulter webhook, this should only be used for the Status, which can't be set by the defaulter.

func ServiceAccounts

func ServiceAccounts(ctx context.Context, params Params) error

ServiceAccounts reconciles the service account(s) required for the instance in the current context.

func Services

func Services(ctx context.Context, params Params) error

Services reconciles the service(s) required for the instance in the current context.

func StatefulSets added in v0.27.0

func StatefulSets(ctx context.Context, params Params) error

StatefulSets reconciles the stateful set(s) required for the instance in the current context.

Types

type Config added in v0.35.0

type Config struct {
	PromConfig *promconfig.Config `yaml:"config"`
}

type Params

type Params struct {
	Config   config.Config
	Client   client.Client
	Instance v1alpha1.OpenTelemetryCollector
	Log      logr.Logger
	Scheme   *runtime.Scheme
	Recorder record.EventRecorder
}

Params holds the reconciliation-specific parameters.

Jump to

Keyboard shortcuts

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