targetallocator

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentOpenTelemetryTargetAllocator = "opentelemetry-targetallocator"
)

Variables

This section is empty.

Functions

func Annotations

func Annotations(instance v1alpha1.OpenTelemetryCollector, configMap *v1.ConfigMap) map[string]string

Annotations returns the annotations for the TargetAllocator Pod.

func Build

func Build(params manifests.Params) ([]client.Object, error)

Build creates the manifest for the TargetAllocator resource.

func ConfigMap

func ConfigMap(params manifests.Params) (*corev1.ConfigMap, error)

func Container

func Container(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) corev1.Container

Container builds a container for the given TargetAllocator.

func Deployment

func Deployment(params manifests.Params) (*appsv1.Deployment, error)

Deployment builds the deployment for the given instance.

func Labels

func Labels(instance v1alpha1.OpenTelemetryCollector, name string) map[string]string

Labels return the common labels to all TargetAllocator objects that are part of a managed OpenTelemetryCollector.

func PodDisruptionBudget added in v0.91.0

func PodDisruptionBudget(params manifests.Params) (*policyV1.PodDisruptionBudget, error)

func SelectorLabels added in v0.91.0

func SelectorLabels(instance v1alpha1.OpenTelemetryCollector) map[string]string

SelectorLabels return the selector labels for Target Allocator Pods.

func Service

func Service(params manifests.Params) *corev1.Service

func ServiceAccount

func ServiceAccount(params manifests.Params) *corev1.ServiceAccount

ServiceAccount returns the service account for the given instance.

func ServiceAccountName

func ServiceAccountName(instance v1alpha1.OpenTelemetryCollector) string

ServiceAccountName returns the name of the existing or self-provisioned service account to use for the given instance.

func ServiceMonitor added in v0.91.0

func ServiceMonitor(params manifests.Params) *monitoringv1.ServiceMonitor

ServiceMonitor returns the service monitor for the given instance.

func Volumes

func Volumes(cfg config.Config, otelcol v1alpha1.OpenTelemetryCollector) []corev1.Volume

Volumes builds the volumes for the given instance, including the config map volume.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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