weixiang1862 opened a new pull request, #105:
URL: https://github.com/apache/skywalking-swck/pull/105

   I use workload annotations to inject agent agent name and collector 
backend_service, I fount javaagent can not get the correct value:
   ```
   [root@15 ~]# kubectl get javaagent -A
   NAMESPACE     NAME                     PODSELECTOR    SERVICENAME            
BACKENDSERVICE
   gray-demo     app-consumer-javaagent   app=consumer   Your_ApplicationName   
127.0.0.1:11800
   ``` 
   
   So I add a method `injectConfigByPodAnnotations` after 
`injectConfigBySwAgent`, then javaagent_controller can overlay config by using 
pod annotations:
   ```
   [root@15 ~]# kubectl get javaagent -A
   NAMESPACE     NAME                     PODSELECTOR    SERVICENAME            
       BACKENDSERVICE
   gray-demo     app-consumer-javaagent   app=consumer   
cluster01-default::consumer   192.168.6.71:11800
   ```


-- 
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-unsubscr...@skywalking.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to