Documentation
¶
Overview ¶
Package naming is for determining the names for components (containers, services, ...).
Index ¶
- func Agent(agent v1alpha1.AmazonCloudWatchAgent) string
- func AmazonCloudWatchAgent(agent v1alpha1.AmazonCloudWatchAgent) string
- func AmazonCloudWatchAgentName(agentName string) string
- func ConfigMap(_ v1alpha1.AmazonCloudWatchAgent) string
- func ConfigMapVolume() string
- func Container() string
- func DNSName(name string) string
- func HeadlessService(agent v1alpha1.AmazonCloudWatchAgent) string
- func Ingress(agent v1alpha1.AmazonCloudWatchAgent) string
- func MonitoringService(agent v1alpha1.AmazonCloudWatchAgent) string
- func Route(agent v1alpha1.AmazonCloudWatchAgent, prefix string) string
- func Service(agent v1alpha1.AmazonCloudWatchAgent) string
- func ServiceAccount(agent v1alpha1.AmazonCloudWatchAgent) string
- func Truncate(format string, max int, values ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Agent ¶
func Agent(agent v1alpha1.AmazonCloudWatchAgent) string
Agent builds the agent (deployment/daemonset) name based on the instance.
func AmazonCloudWatchAgent ¶
func AmazonCloudWatchAgent(agent v1alpha1.AmazonCloudWatchAgent) string
AmazonCloudWatchAgent builds the agent (deployment/daemonset) name based on the instance.
func AmazonCloudWatchAgentName ¶
AmazonCloudWatchAgentName builds the agent (deployment/daemonset) name based on the instance.
func ConfigMap ¶
func ConfigMap(_ v1alpha1.AmazonCloudWatchAgent) string
ConfigMap builds the name for the config map used in the AmazonCloudWatchAgent 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 ¶
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(agent v1alpha1.AmazonCloudWatchAgent) string
HeadlessService builds the name for the headless service based on the instance.
func Ingress ¶
func Ingress(agent v1alpha1.AmazonCloudWatchAgent) string
Ingress builds the ingress name based on the instance.
func MonitoringService ¶
func MonitoringService(agent v1alpha1.AmazonCloudWatchAgent) string
MonitoringService builds the name for the monitoring service based on the instance.
func Route ¶
func Route(agent v1alpha1.AmazonCloudWatchAgent, prefix string) string
Route builds the route name based on the instance.
func Service ¶
func Service(agent v1alpha1.AmazonCloudWatchAgent) string
Service builds the service name based on the instance.
func ServiceAccount ¶
func ServiceAccount(agent v1alpha1.AmazonCloudWatchAgent) string
ServiceAccount builds the service account name based on the instance.
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.