Skip to content

Commit

Permalink
feat:support inject java agent to user pod
Browse files Browse the repository at this point in the history
  • Loading branch information
chuntaojun committed Jan 24, 2024
1 parent 2e8b1c4 commit de0ddda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/inject/pkg/kube/inject/apply/mesh/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (pb *PodPatchBuilder) addPolarisConfigToInitContainerEnv(opt *inject.PatchO
return err
}

tmp, err := (&template.Template{}).Parse(cfgTpl.Data["polaris.yaml"])
tmp, err := template.New("polaris-config-init").Parse(cfgTpl.Data["polaris.yaml"])
if err != nil {
log.InjectScope().Errorf("[Webhook][Inject] parse polaris-sidecar failed: %v", err)
return err
Expand Down

0 comments on commit de0ddda

Please sign in to comment.