From 892867066a2d130202efbb1dad180c3908787b5d Mon Sep 17 00:00:00 2001 From: shuhanliu Date: Mon, 1 Jul 2024 10:32:02 +0800 Subject: [PATCH] Compatible with older versions --- pkg/inject/pkg/kube/inject/apply/javaagent/patch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/inject/pkg/kube/inject/apply/javaagent/patch.go b/pkg/inject/pkg/kube/inject/apply/javaagent/patch.go index 7bdfd19..4fbe0ff 100644 --- a/pkg/inject/pkg/kube/inject/apply/javaagent/patch.go +++ b/pkg/inject/pkg/kube/inject/apply/javaagent/patch.go @@ -149,7 +149,7 @@ func (pb *PodPatchBuilder) handleJavaAgentInit(opt *inject.PatchOptions, pod *co } defaultProperties := make(map[string]string) - + // 判断是不是老版本,如果是老版本且客户填写的版本号不为空则走老的逻辑,否则走新的逻辑,只下发北极星的地址和端口信息 if val, ok := annonations[customJavaAgentVersion]; ok && (validVersions[val] && val != "") { kubeClient := opt.KubeClient pluginCm, err := kubeClient.CoreV1().ConfigMaps(util.RootNamespace).Get(context.Background(),