discovery

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Source: https://github.com/jaegertracing/jaeger-operator/blob/88fd9c6ef1d254dbf7946d2cfaf9d42acecdea4c/pkg/util/dns_name.go (ASL 2.0 license) Must follow same algorithm as service name generation in tempo operator: https://github.com/grafana/tempo-operator/blob/9c3430969265e23b2e9fc3103ab608624195e15e/internal/manifests/naming/naming.go#L13 https://github.com/grafana/tempo-operator/blob/9c3430969265e23b2e9fc3103ab608624195e15e/internal/manifests/naming/sanitize.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

type KindType

type KindType string
const (
	KindTempoStack      KindType = "TempoStack"
	KindTempoMonolithic KindType = "TempoMonolithic"
)

type Route

type Route struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              RouteSpec `json:"spec"`
}

Route represents the OpenShift Route CR

type RouteSpec

type RouteSpec struct {
	Host string `json:"host,omitempty"`
}

type TempoInstance

type TempoInstance struct {
	Kind         KindType `json:"kind"`
	Namespace    string   `json:"tempoNamespace"`
	Name         string   `json:"tempoName"`
	Multitenancy bool     `json:"multitenancy"`
	Tenants      []string `json:"tenants,omitempty"`
	Status       string   `json:"status"`
	// contains filtered or unexported fields
}

func ListInstances

func ListInstances(ctx context.Context, k8sClient dynamic.Interface, useRoute bool) ([]TempoInstance, error)

func (*TempoInstance) GetURL

func (t *TempoInstance) GetURL(tenant string) string

type TempoMonolithic

type TempoMonolithic struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              TempoMonolithicSpec   `json:"spec"`
	Status            TempoMonolithicStatus `json:"status"`
}

TempoMonolithic represents the TempoMonolithic CR

type TempoMonolithicMultitenancy

type TempoMonolithicMultitenancy struct {
	Enabled        bool                   `json:"enabled,omitempty"`
	Mode           string                 `json:"mode,omitempty"`
	Authentication []TenantAuthentication `json:"authentication,omitempty"`
}

type TempoMonolithicSpec

type TempoMonolithicSpec struct {
	Multitenancy *TempoMonolithicMultitenancy `json:"multitenancy,omitempty"`
}

type TempoMonolithicStatus

type TempoMonolithicStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

type TempoStack

type TempoStack struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              TempoStackSpec   `json:"spec"`
	Status            TempoStackStatus `json:"status"`
}

TempoStack represents the TempoStack CR

type TempoStackSpec

type TempoStackSpec struct {
	Tenants *TempoStackTenants `json:"tenants,omitempty"`
}

type TempoStackStatus

type TempoStackStatus struct {
	Conditions []metav1.Condition `json:"conditions,omitempty"`
}

type TempoStackTenants

type TempoStackTenants struct {
	Mode           string                 `json:"mode,omitempty"`
	Authentication []TenantAuthentication `json:"authentication,omitempty"`
}

type TenantAuthentication

type TenantAuthentication struct {
	TenantName string `json:"tenantName,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL