# Functions

ClusterRole builds the cluster role name based on the instance.
ClusterRoleBinding builds the cluster role binding name based on the instance.
Collector builds the collector (deployment/daemonset) name based on the instance.
ConfigMap builds the name for the config map used in the OpenTelemetryCollector containers.
ConfigMapExtra returns the prefix to use for the extras mounted configmaps in the pod.
ConfigMapVolume returns the name to use for the config map's volume in the pod.
Container returns the name to use for the container in the pod.
DNSName returns a dns-safe string for the given name.
HeadlessService builds the name for the headless service based on the instance.
HorizontalPodAutoscaler builds the autoscaler name based on the instance.
Ingress builds the ingress name based on the instance.
MonitoringService builds the name for the monitoring service based on the instance.
OpAMPBridge returns the OpAMPBridge deployment resource name.
OpAMPBridgeConfigMap builds the name for the config map used in the OpAMPBridge containers.
OpAMPBridgeConfigMapVolume returns the name to use for the config map's volume in the OpAMPBridge pod.
OpAMPBridgeContainer returns the name to use for the container in the OpAMPBridge pod.
OpAMPBridgeService returns the name to use for the OpAMPBridge service.
OpAMPBridgeServiceAccount builds the service account name based on the instance.
OpenTelemetryCollector builds the collector (deployment/daemonset) name based on the instance.
OpenTelemetryCollectorName builds the collector (deployment/daemonset) name based on the instance.
PodDisruptionBudget builds the pdb name based on the instance.
PodMonitor builds the pod Monitor name based on the instance.
PortName defines the port name used in services, ingresses and routes.
Route builds the route name based on the instance.
Service builds the service name based on the instance.
ServiceAccount builds the service account name based on the instance.
ServiceMonitor builds the service Monitor name based on the instance.
TAConfigMap returns the name for the config map used in the TargetAllocator.
TAConfigMapVolume returns the name to use for the config map's volume in the TargetAllocator pod.
TAContainer returns the name to use for the container in the TargetAllocator pod.
TAPodDisruptionBudget builds the pdb name based on the instance.
TargetAllocator returns the TargetAllocator deployment resource name.
TargetAllocatorServiceAccount returns the TargetAllocator service account resource name.
TargetAllocatorServiceMonitor returns the TargetAllocator service account resource name.
TAService returns the name to use for the TargetAllocator service.
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.