Documentation ¶
Index ¶
- Variables
- func CleanSidecar(instanceName string, deployment *appsv1.Deployment)
- func EqualSidecar(dep, oldDep *appsv1.Deployment) bool
- func GetConfigMapsMatchedEnvFromInDeployment(dep appsv1.Deployment, configMaps []corev1.ConfigMap) []corev1.ConfigMap
- func HasJaegerAgent(dep *appsv1.Deployment) (bool, int)
- func IncreaseRevision(annotations map[string]string)
- func Needed(dep *appsv1.Deployment, ns *corev1.Namespace) bool
- func OAuthProxy(jaeger *v1.Jaeger, dep *appsv1.Deployment) *appsv1.Deployment
- func PropagateOAuthCookieSecret(specSrc, specDst appsv1.DeploymentSpec) appsv1.DeploymentSpec
- func Select(target *appsv1.Deployment, ns *corev1.Namespace, ...) *v1.Jaeger
- func Sidecar(jaeger *v1.Jaeger, dep *appsv1.Deployment, opts ...Options) *appsv1.Deployment
- type Options
- type SidecarOptions
Constants ¶
This section is empty.
Variables ¶
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
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)