Skip to content

Commit

Permalink
feat: add JAVA_AGENT_FRAMEWORK_NAME and JAVA_AGENT_FRAMEWORK_VERSION …
Browse files Browse the repository at this point in the history
…for javaagent inject (#172)
  • Loading branch information
andrewshan authored Feb 1, 2024
1 parent 2b2c626 commit 89111f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/inject/pkg/kube/inject/apply/javaagent/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ func (pb *PodPatchBuilder) handleJavaAgentInit(opt *inject.PatchOptions, pod *co
Name: "JAVA_AGENT_PLUGIN_TYPE",
Value: pluginType,
})
add.Env = append(add.Env, corev1.EnvVar{
Name: "JAVA_AGENT_FRAMEWORK_NAME",
Value: frameworkName,
})
add.Env = append(add.Env, corev1.EnvVar{
Name: "JAVA_AGENT_FRAMEWORK_VERSION",
Value: frameworkVersion,
})
kubeClient := opt.KubeClient
pluginCm, err := kubeClient.CoreV1().ConfigMaps(util.RootNamespace).Get(context.Background(),
"plugin-default.properties", metav1.GetOptions{})
Expand Down

0 comments on commit 89111f7

Please sign in to comment.