JooKS-me commented on code in PR #5054:
URL: https://github.com/apache/shenyu/pull/5054#discussion_r1300001328


##########
shenyu-kubernetes-controller/src/main/java/org/apache/shenyu/k8s/reconciler/IngressReconciler.java:
##########
@@ -119,6 +119,21 @@ public Result reconcile(final Request request) {
         // Do not modify current ingress object directly
         final V1Ingress v1Ingress = 
this.ingressLister.namespace(request.getNamespace()).get(request.getName());
         final V1Ingress oldIngress = 
IngressCache.getInstance().get(request.getNamespace(), request.getName());
+        Map<String, String> annotations = 
v1Ingress.getMetadata().getAnnotations();
+        enablePlugin(shenyuCacheRepository, PluginEnum.GLOBAL, annotations);

Review Comment:
   Global, uri, netty_http_client, divide plugins should be enabled int 
`initPlugins` method, others can be enabled this way.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to