naming

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

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

nolint:mnd,gofumpt

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigMap

func ConfigMap(otelcol, configHash string) string

ConfigMap builds the name for the config map used in the OpenTelemetryCollector containers. The configHash should be calculated using manifestutils.GetConfigMapSHA.

func ConfigMapExtra

func ConfigMapExtra(extraConfigMapName string) string

ConfigMapExtra returns the prefix to use for the extras mounted configmaps in the pod.

func ConfigMapVolume

func ConfigMapVolume() string

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

func DNSName

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 ExtensionService

func ExtensionService(otelcol string) string

ExtensionService builds the name for the extension service based on the instance.

func GrpcService

func GrpcService(otelcol string) string

GrpcService builds the name for the grpc service based on the instance.

func HeadlessService

func HeadlessService(otelcol string) string

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

func Ingress

func Ingress(otelcol string) string

Ingress builds the ingress name based on the instance.

func MonitoringService

func MonitoringService(otelcol string) string

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

func NonGrpcService

func NonGrpcService(otelcol string) string

NonGrpcService builds the name for the grpc service based on the instance.

func OpenTelemetryCollectorName

func OpenTelemetryCollectorName(otelcolName string) string

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

func PortName

func PortName(receiverName string, port int32) string

PortName defines the port name used in services, ingresses and routes. The port name in pod and ingress spec has to be maximum 15 characters long.

func Service

func Service(otelcol string) string

Service builds the service name based on the instance.

func Truncate

func Truncate(format string, maxLen int, values ...any) 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