Skip to content

Commit

Permalink
fix:修复java-agent注入时plugin.enable格式不对
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Feb 1, 2024
1 parent 12fc741 commit ec043c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/inject/pkg/kube/inject/apply/javaagent/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (pb *PodPatchBuilder) handleJavaAgentInit(opt *inject.PatchOptions, pod *co
pluginType := frameworkName + frameworkVersion
add.Env = append(add.Env, corev1.EnvVar{
Name: "JAVA_AGENT_PLUGIN_TYPE",
Value: "plugins.enable=" + pluginType,
Value: pluginType,
})
kubeClient := opt.KubeClient
pluginCm, err := kubeClient.CoreV1().ConfigMaps(util.RootNamespace).Get(context.Background(),
Expand Down

0 comments on commit ec043c7

Please sign in to comment.