naming

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package naming is for determining the names for components (containers, services, ...).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collector

func Collector(otelcol v1alpha1.OpenTelemetryCollector) string

Collector builds the collector (deployment/daemonset) name based on the instance.

func ConfigMap

func ConfigMap(otelcol v1alpha1.OpenTelemetryCollector) string

ConfigMap builds the name for the config map used in the OpenTelemetryCollector containers.

func ConfigMapVolume

func ConfigMapVolume() string

ConfigMapVolume returns the name to use for the config map's volume in the pod.

func Container

func Container() string

Container returns the name to use for the container in the pod.

func DNSName added in v0.41.0

func DNSName(name string) string

DNSName returns a dns-safe string for the given name. Any char that is not [a-z0-9] is replaced by "-" or "a". Replacement character "a" is used only at the beginning or at the end of the name. The function does not change length of the string. source: https://github.com/jaegertracing/jaeger-operator/blob/91e3b69ee5c8761bbda9d3cf431400a73fc1112a/pkg/util/dns_name.go#L15

func HeadlessService

func HeadlessService(otelcol v1alpha1.OpenTelemetryCollector) string

HeadlessService builds the name for the headless service based on the instance.

func HorizontalPodAutoscaler added in v0.56.0

func HorizontalPodAutoscaler(otelcol v1alpha1.OpenTelemetryCollector) string

HorizontalPodAutoscaler builds the autoscaler name based on the instance.

func Ingress added in v0.61.0

func Ingress(otelcol v1alpha1.OpenTelemetryCollector) string

Ingress builds the ingress name based on the instance.

func MonitoringService

func MonitoringService(otelcol v1alpha1.OpenTelemetryCollector) string

MonitoringService builds the name for the monitoring service based on the instance.

func OpenTelemetryCollector added in v0.56.0

func OpenTelemetryCollector(otelcol v1alpha1.OpenTelemetryCollector) string

OpenTelemetryCollector builds the collector (deployment/daemonset) name based on the instance.

func OpenTelemetryCollectorName added in v0.56.0

func OpenTelemetryCollectorName(otelcolName string) string

OpenTelemetryCollectorName builds the collector (deployment/daemonset) name based on the instance.

func Route added in v0.67.0

func Route(otelcol v1alpha1.OpenTelemetryCollector, prefix string) string

Route builds the route name based on the instance.

func Service

func Service(otelcol v1alpha1.OpenTelemetryCollector) string

Service builds the service name based on the instance.

func ServiceAccount

func ServiceAccount(otelcol v1alpha1.OpenTelemetryCollector) string

ServiceAccount builds the service account name based on the instance.

func TAConfigMap added in v0.33.0

func TAConfigMap(otelcol v1alpha1.OpenTelemetryCollector) string

TAConfigMap returns the name for the config map used in the TargetAllocator.

func TAConfigMapVolume added in v0.33.0

func TAConfigMapVolume() string

TAConfigMapVolume returns the name to use for the config map's volume in the TargetAllocator pod.

func TAContainer added in v0.33.0

func TAContainer() string

TAContainer returns the name to use for the container in the TargetAllocator pod.

func TAService added in v0.33.0

func TAService(otelcol v1alpha1.OpenTelemetryCollector) string

TAService returns the name to use for the TargetAllocator service.

func TargetAllocator added in v0.33.0

func TargetAllocator(otelcol v1alpha1.OpenTelemetryCollector) string

TargetAllocator returns the TargetAllocator deployment resource name.

func TargetAllocatorServiceAccount added in v0.52.0

func TargetAllocatorServiceAccount(otelcol v1alpha1.OpenTelemetryCollector) string

TargetAllocatorServiceAccount returns the TargetAllocator service account resource name.

func Truncate added in v0.41.0

func Truncate(format string, max int, values ...interface{}) string

Truncate will shorten the length of the instance name so that it contains at most max chars when combined with the fixed part If the fixed part is already bigger than the max, this function is noop. source: https://github.com/jaegertracing/jaeger-operator/blob/91e3b69ee5c8761bbda9d3cf431400a73fc1112a/pkg/util/truncate.go#L17

Types

This section is empty.

Jump to

Keyboard shortcuts

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