Documentation ¶
Overview ¶
Package naming is for determining the names for components (containers, services, ...).
Index ¶
- func Collector(otelcol v1alpha1.OpenTelemetryCollector) string
- func ConfigMap(otelcol v1alpha1.OpenTelemetryCollector) string
- func ConfigMapVolume() string
- func Container() string
- func DNSName(name string) string
- func HeadlessService(otelcol v1alpha1.OpenTelemetryCollector) string
- func HorizontalPodAutoscaler(otelcol v1alpha1.OpenTelemetryCollector) string
- func MonitoringService(otelcol v1alpha1.OpenTelemetryCollector) string
- func OpenTelemetryCollector(otelcol v1alpha1.OpenTelemetryCollector) string
- func OpenTelemetryCollectorName(otelcolName string) string
- func Service(otelcol v1alpha1.OpenTelemetryCollector) string
- func ServiceAccount(otelcol v1alpha1.OpenTelemetryCollector) string
- func TAConfigMap(otelcol v1alpha1.OpenTelemetryCollector) string
- func TAConfigMapVolume() string
- func TAContainer() string
- func TAService(otelcol v1alpha1.OpenTelemetryCollector) string
- func TargetAllocator(otelcol v1alpha1.OpenTelemetryCollector) string
- func TargetAllocatorServiceAccount(otelcol v1alpha1.OpenTelemetryCollector) string
- func Truncate(format string, max int, values ...interface{}) string
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
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 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
HorizontalPodAutoscaler builds the collector (deployment/daemonset) name based on the instance.
func OpenTelemetryCollectorName ¶ added in v0.56.0
HorizontalPodAutoscaler builds the collector (deployment/daemonset) 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
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.