You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "github-advanced-security[bot] (via GitHub)" <gi...@apache.org> on 2025/10/08 19:42:11 UTC

Re: [PR] Create a new KubernetesPeonClient that uses fabric8 informers to reduce load on an underlying k8s API (druid)

github-advanced-security[bot] commented on code in PR #18599:
URL: https://github.com/apache/druid/pull/18599#discussion_r2414852948


##########
extensions-core/kubernetes-overlord-extensions/src/main/java/org/apache/druid/k8s/overlord/KubernetesTaskRunnerConfig.java:
##########
@@ -242,6 +251,14 @@
         capacity,
         this.capacity
     );
+    this.enableKubernetesClientSharedInformers = ObjectUtils.defaultIfNull(
+        enableKubernetesClientSharedInformers,
+        this.enableKubernetesClientSharedInformers
+    );
+    this.kubernetesClientInformerResyncPeriod = ObjectUtils.defaultIfNull(
+        kubernetesClientInformerResyncPeriod,
+        this.kubernetesClientInformerResyncPeriod
+    );

Review Comment:
   ## Deprecated method or constructor invocation
   
   Invoking [ObjectUtils.defaultIfNull](1) should be avoided because it has been deprecated.
   
   [Show more details](https://github.com/apache/druid/security/code-scanning/10503)



##########
extensions-core/kubernetes-overlord-extensions/src/main/java/org/apache/druid/k8s/overlord/KubernetesTaskRunnerConfig.java:
##########
@@ -242,6 +251,14 @@
         capacity,
         this.capacity
     );
+    this.enableKubernetesClientSharedInformers = ObjectUtils.defaultIfNull(
+        enableKubernetesClientSharedInformers,
+        this.enableKubernetesClientSharedInformers
+    );

Review Comment:
   ## Deprecated method or constructor invocation
   
   Invoking [ObjectUtils.defaultIfNull](1) should be avoided because it has been deprecated.
   
   [Show more details](https://github.com/apache/druid/security/code-scanning/10502)



-- 
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: commits-unsubscribe@druid.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org