Documentation ¶
Overview ¶
Package collector handles the OpenTelemetry Collector.
Package collector handles the OpenTelemetry Collector.
Index ¶
- func Annotations(instance v1alpha1.OpenTelemetryCollector) map[string]string
- func Container(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) corev1.Container
- func DaemonSet(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) appsv1.DaemonSet
- func Deployment(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) appsv1.Deployment
- func HorizontalPodAutoscaler(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) client.Object
- func Labels(instance v1alpha1.OpenTelemetryCollector, filterLabels []string) map[string]string
- func PodAnnotations(instance v1alpha1.OpenTelemetryCollector) map[string]string
- func SelectorLabels(instance v1alpha1.OpenTelemetryCollector) map[string]string
- func ServiceAccount(otelcol v1alpha1.OpenTelemetryCollector) corev1.ServiceAccount
- func ServiceAccountName(instance v1alpha1.OpenTelemetryCollector) string
- func StatefulSet(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) appsv1.StatefulSet
- func VolumeClaimTemplates(cfg config.Config, otelcol v1alpha1.OpenTelemetryCollector) []corev1.PersistentVolumeClaim
- func Volumes(cfg config.Config, otelcol v1alpha1.OpenTelemetryCollector) []corev1.Volume
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotations ¶ added in v0.21.0
func Annotations(instance v1alpha1.OpenTelemetryCollector) map[string]string
Annotations return the annotations for OpenTelemetryCollector pod.
func Container ¶
func Container(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) corev1.Container
Container builds a container for the given collector.
func DaemonSet ¶
func DaemonSet(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) appsv1.DaemonSet
DaemonSet builds the deployment for the given instance.
func Deployment ¶
func Deployment(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) appsv1.Deployment
Deployment builds the deployment for the given instance.
func HorizontalPodAutoscaler ¶ added in v0.46.0
func Labels ¶
func Labels(instance v1alpha1.OpenTelemetryCollector, filterLabels []string) map[string]string
Labels return the common labels to all objects that are part of a managed OpenTelemetryCollector.
func PodAnnotations ¶ added in v0.43.0
func PodAnnotations(instance v1alpha1.OpenTelemetryCollector) map[string]string
PodAnnotations return the spec annotations for OpenTelemetryCollector pod.
func SelectorLabels ¶ added in v0.52.0
func SelectorLabels(instance v1alpha1.OpenTelemetryCollector) map[string]string
SelectorLabels return the common labels to all objects that are part of a managed OpenTelemetryCollector to use as selector. Selector labels are immutable for Deployment, StatefulSet and DaemonSet, therefore, no labels in selector should be expected to be modified for the lifetime of the object.
func ServiceAccount ¶
func ServiceAccount(otelcol v1alpha1.OpenTelemetryCollector) 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 StatefulSet ¶ added in v0.27.0
func StatefulSet(cfg config.Config, logger logr.Logger, otelcol v1alpha1.OpenTelemetryCollector) appsv1.StatefulSet
StatefulSet builds the statefulset for the given instance.
func VolumeClaimTemplates ¶ added in v0.27.0
func VolumeClaimTemplates(cfg config.Config, otelcol v1alpha1.OpenTelemetryCollector) []corev1.PersistentVolumeClaim
VolumeClaimTemplates builds the volumeClaimTemplates for the given instance, including the config map volume mount.
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package adapters is for data conversion.
|
Package adapters is for data conversion. |
Package parser is for parsing the OpenTelemetry Collector configuration.
|
Package parser is for parsing the OpenTelemetry Collector configuration. |
Package reconcile contains reconciliation logic for OpenTelemetry Collector components.
|
Package reconcile contains reconciliation logic for OpenTelemetry Collector components. |
Package upgrade handles the upgrade routine from one OpenTelemetry Collector to the next.
|
Package upgrade handles the upgrade routine from one OpenTelemetry Collector to the next. |