inject

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// 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 HasJaegerAgent added in v1.17.0

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

HasJaegerAgent checks whether deployment has Jaeger Agent container

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) *appsv1.Deployment

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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