You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/09/14 15:12:06 UTC
[GitHub] [skywalking-swck] kezhenxu94 commented on a change in pull request #30: add feature: java agent injector
kezhenxu94 commented on a change in pull request #30:
URL: https://github.com/apache/skywalking-swck/pull/30#discussion_r708372846
##########
File path: pkg/operator/injector/injector.go
##########
@@ -293,6 +298,29 @@ func (s *SidecarInjectField) OverlayAgent(a Annotations, ao *AnnotationOverlay,
return true
}
+// OverlayOptional overlays optional plugins and move optional plugins to the directory(/plugins)
+// user must ensure that the optional plugins are in the injected container's image
+// Notice , user must specify the optional plugins' version
+// such as spring-cloud-gateway-2.0.x or spring-cloud-gateway-2.1.x
+// the final command will be "mv /optional-plugins/*spring-cloud-gateway-2.0.x* /plugins/"
Review comment:
It's safe to use `cp` command in the Java agent image.
The optional plugins reminds me that we have this config `plugin.exclude_plugins=${SW_EXCLUDE_PLUGINS:}`, and as a Docker images, I'm thinking to move all optional plugins into the default `/plugins` and set `SW_EXCLUDE_PLUGINS` to the optional plugins to disable them, so that we don't need to `cp` / `mv` those files, this is also the original reason why we bring the config
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org