inject

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AnnotationRev is the annotation name to look for when deciding whether or not to inject
	AnnotationRev = "sidecar.jaegertracing.io/revision"
	// Annotation is the annotation name to look for when deciding whether or not to inject
	Annotation = "sidecar.jaegertracing.io/inject"
	// Label is the label name the operator put on injected deployments.
	Label = "sidecar.jaegertracing.io/injected"
	// AnnotationLegacy holds the annotation name we had in the past, which we keep for backwards compatibility
	AnnotationLegacy = "inject-jaeger-agent"
	// PrometheusDefaultAnnotations is a map containing annotations for prometheus to be inserted at sidecar in case it doesn't have any
	PrometheusDefaultAnnotations = map[string]string{
		"prometheus.io/scrape": "true",
		"prometheus.io/port":   "14271",
	}
)

Functions

func CleanSidecar added in v1.14.0

func CleanSidecar(instanceName string, deployment *appsv1.Deployment)

CleanSidecar of deployments associated with the jaeger instance.

func EqualSidecar added in v1.18.0

func EqualSidecar(dep, oldDep *appsv1.Deployment) bool

EqualSidecar check if two deployments sidecar are equal

func GetConfigMapsMatchedEnvFromInDeployment added in v1.48.0

func GetConfigMapsMatchedEnvFromInDeployment(dep appsv1.Deployment, configMaps []corev1.ConfigMap) []corev1.ConfigMap

GetConfigMapsMatchedEnvFromInDeployment returns configMap which matches with configMapRef

func HasJaegerAgent added in v1.17.0

func HasJaegerAgent(dep *appsv1.Deployment) (bool, int)

HasJaegerAgent checks whether deployment has Jaeger Agent container

func IncreaseRevision added in v1.33.0

func IncreaseRevision(annotations map[string]string)

IncreaseRevision increases the revision counter if a inject annoation exists.

func Needed

func Needed(dep *appsv1.Deployment, ns *corev1.Namespace) bool

Needed determines whether a pod needs to get a sidecar injected or not

func OAuthProxy

func OAuthProxy(jaeger *v1.Jaeger, dep *appsv1.Deployment) *appsv1.Deployment

OAuthProxy injects an appropriate proxy into the given deployment

func PropagateOAuthCookieSecret added in v1.17.0

func PropagateOAuthCookieSecret(specSrc, specDst appsv1.DeploymentSpec) appsv1.DeploymentSpec

PropagateOAuthCookieSecret preserve the generated oauth cookie across multiple reconciliations

func Select

func Select(target *appsv1.Deployment, ns *corev1.Namespace, availableJaegerPods *v1.JaegerList) *v1.Jaeger

Select a suitable Jaeger from the JaegerList for the given Pod, or nil of none is suitable

func Sidecar

func Sidecar(jaeger *v1.Jaeger, dep *appsv1.Deployment, opts ...Options) *appsv1.Deployment

Sidecar adds a new container to the deployment, connecting to the given jaeger instance

Types

type Options added in v1.48.0

type Options func(f *SidecarOptions)

func WithEnvFromConfigMaps added in v1.48.0

func WithEnvFromConfigMaps(configMaps []corev1.ConfigMap) Options

type SidecarOptions added in v1.48.0

type SidecarOptions struct {
	EnvConfigMaps []corev1.ConfigMap
}

Jump to

Keyboard shortcuts

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