Documentation
¶
Overview ¶
Package naming is for determining the names for components (containers, services, ...).
Index ¶
- func Collector(otelcol string) string
- func ConfigMap(otelcol string) string
- func ConfigMapExtra(extraConfigMapName string) string
- func ConfigMapVolume() string
- func Container() string
- func DNSName(name string) string
- func HeadlessService(otelcol string) string
- func HorizontalPodAutoscaler(otelcol string) string
- func Ingress(otelcol string) string
- func MonitoringService(otelcol string) string
- func OpenTelemetryCollector(otelcol string) string
- func OpenTelemetryCollectorName(otelcolName string) string
- func PortName(receiverName string, port int32) string
- func Route(otelcol string, prefix string) string
- func Service(otelcol string) string
- func ServiceAccount(otelcol string) string
- func ServiceMonitor(otelcol string) string
- func TAConfigMap(otelcol string) string
- func TAConfigMapVolume() string
- func TAContainer() string
- func TAService(otelcol string) string
- func TargetAllocator(otelcol string) string
- func TargetAllocatorServiceAccount(otelcol string) string
- func Truncate(format string, max int, values ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigMap ¶
ConfigMap builds the name for the config map used in the OpenTelemetryCollector containers.
func ConfigMapExtra ¶ added in v0.85.0
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 Container ¶
func Container() string
Container returns the name to use for the container in the pod.
func DNSName ¶
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 ¶
HeadlessService builds the name for the headless service based on the instance.
func HorizontalPodAutoscaler ¶
HorizontalPodAutoscaler builds the autoscaler name based on the instance.
func MonitoringService ¶
MonitoringService builds the name for the monitoring service based on the instance.
func OpenTelemetryCollector ¶
OpenTelemetryCollector builds the collector (deployment/daemonset) name based on the instance.
func OpenTelemetryCollectorName ¶
OpenTelemetryCollectorName builds the collector (deployment/daemonset) name based on the instance.
func PortName ¶
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 ServiceAccount ¶
ServiceAccount builds the service account name based on the instance.
func ServiceMonitor ¶
ServiceMonitor builds the service account name based on the instance.
func TAConfigMap ¶
TAConfigMap returns the name for the config map used in the TargetAllocator.
func TAConfigMapVolume ¶
func TAConfigMapVolume() string
TAConfigMapVolume returns the name to use for the config map's volume in the TargetAllocator pod.
func TAContainer ¶
func TAContainer() string
TAContainer returns the name to use for the container in the TargetAllocator pod.
func TargetAllocator ¶
TargetAllocator returns the TargetAllocator deployment resource name.
func TargetAllocatorServiceAccount ¶
TargetAllocatorServiceAccount returns the TargetAllocator service account resource name.
func Truncate ¶
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.