From bce549d3bb5d78bf9507cecfddbe4abb57a7149a Mon Sep 17 00:00:00 2001 From: Pavol Loffay Date: Wed, 23 Oct 2024 17:16:07 +0200 Subject: [PATCH] Fix Signed-off-by: Pavol Loffay --- config/manager/kustomization.yaml | 6 ------ pkg/instrumentation/javaagent.go | 1 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index b6bdbbfcdb..5c5f0b84cb 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -1,8 +1,2 @@ resources: - manager.yaml -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization -images: -- name: controller - newName: docker.io/pavolloffay/opentelemetry-operator - newTag: dev-70dff694-1729607411 diff --git a/pkg/instrumentation/javaagent.go b/pkg/instrumentation/javaagent.go index 2c049127cc..fb64424426 100644 --- a/pkg/instrumentation/javaagent.go +++ b/pkg/instrumentation/javaagent.go @@ -49,6 +49,7 @@ func injectJavaagent(javaSpec v1alpha1.Java, pod corev1.Pod, index int) corev1.P idx := getIndexOfEnv(container.Env, envJavaToolsOptions) if idx != -1 { + // https://kubernetes.io/docs/tasks/inject-data-application/define-interdependent-environment-variables/ javaJVMArgument = fmt.Sprintf("$(%s) %s", envJavaToolsOptions, javaJVMArgument) } container.Env = append(container.Env, corev1.EnvVar{