naming

package
v0.113.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 4 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 CACertificate added in v0.111.0

func CACertificate(otelcol string) string

CACertificateSecret returns the Secret name based on the instance.

func CAIssuer added in v0.111.0

func CAIssuer(otelcol string) string

CAIssuer returns the CA Issuer name based on the instance.

func ClusterRole added in v0.92.0

func ClusterRole(otelcol string, namespace string) string

ClusterRole builds the cluster role name based on the instance.

func ClusterRoleBinding added in v0.92.0

func ClusterRoleBinding(otelcol, namespace string) string

ClusterRoleBinding builds the cluster role binding name based on the instance.

func Collector

func Collector(otelcol string) string

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

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 added in v0.85.0

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 Container

func Container() string

Container returns the name to use for the container 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 added in v0.113.1

func ExtensionService(otelcol string) string

ExtensionService builds the name for the extension 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 HorizontalPodAutoscaler

func HorizontalPodAutoscaler(otelcol string) string

HorizontalPodAutoscaler builds the autoscaler name 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 OpAMPBridge added in v0.88.0

func OpAMPBridge(opampBridge string) string

OpAMPBridge returns the OpAMPBridge deployment resource name.

func OpAMPBridgeConfigMap added in v0.88.0

func OpAMPBridgeConfigMap(opampBridge string) string

OpAMPBridgeConfigMap builds the name for the config map used in the OpAMPBridge containers.

func OpAMPBridgeConfigMapVolume added in v0.88.0

func OpAMPBridgeConfigMapVolume() string

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

func OpAMPBridgeContainer added in v0.88.0

func OpAMPBridgeContainer() string

OpAMPBridgeContainer returns the name to use for the container in the OpAMPBridge pod.

func OpAMPBridgeService added in v0.88.0

func OpAMPBridgeService(opampBridge string) string

OpAMPBridgeService returns the name to use for the OpAMPBridge service.

func OpAMPBridgeServiceAccount added in v0.88.0

func OpAMPBridgeServiceAccount(opampBridge string) string

OpAMPBridgeServiceAccount builds the service account name based on the instance.

func OpenTelemetryCollector

func OpenTelemetryCollector(otelcol string) string

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

func OpenTelemetryCollectorName

func OpenTelemetryCollectorName(otelcolName string) string

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

func PodDisruptionBudget added in v0.86.0

func PodDisruptionBudget(otelcol string) string

PodDisruptionBudget builds the pdb name based on the instance.

func PodMonitor added in v0.90.0

func PodMonitor(otelcol string) string

PodMonitor builds the pod Monitor 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 Route

func Route(otelcol string, prefix string) string

Route builds the route name based on the instance.

func SelfSignedIssuer added in v0.111.0

func SelfSignedIssuer(otelcol string) string

SelfSignedIssuer returns the SelfSigned Issuer name based on the instance.

func Service

func Service(otelcol string) string

Service builds the service name based on the instance.

func ServiceAccount

func ServiceAccount(otelcol string) string

ServiceAccount builds the service account name based on the instance.

func ServiceMonitor

func ServiceMonitor(otelcol string) string

ServiceMonitor builds the service Monitor name based on the instance.

func TAClientCertificate added in v0.111.0

func TAClientCertificate(otelcol string) string

TAClientCertificate returns the Certificate name based on the instance.

func TAClientCertificateSecretName added in v0.111.0

func TAClientCertificateSecretName(otelcol string) string

TAClientCertificateSecretName returns the Secret name based on the instance.

func TAConfigMap

func TAConfigMap(targetAllocator string) string

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 TAPodDisruptionBudget added in v0.91.0

func TAPodDisruptionBudget(otelcol string) string

TAPodDisruptionBudget builds the pdb name based on the instance.

func TAServerCertificate added in v0.111.0

func TAServerCertificate(otelcol string) string

TAServerCertificate returns the Certificate name based on the instance.

func TAServerCertificateSecretName added in v0.111.0

func TAServerCertificateSecretName(otelcol string) string

TAServerCertificateSecretName returns the Secret name based on the instance.

func TAService

func TAService(taName string) string

TAService returns the name to use for the TargetAllocator service.

func TargetAllocator

func TargetAllocator(otelcol string) string

TargetAllocator returns the TargetAllocator deployment resource name.

func TargetAllocatorServiceAccount

func TargetAllocatorServiceAccount(otelcol string) string

TargetAllocatorServiceAccount returns the TargetAllocator service account resource name.

func TargetAllocatorServiceMonitor added in v0.91.0

func TargetAllocatorServiceMonitor(otelcol string) string

TargetAllocatorServiceMonitor returns the TargetAllocator service account resource name.

func Truncate

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