You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/04/30 11:34:43 UTC

[GitHub] [flink-kubernetes-operator] Aitozi commented on a diff in pull request #190: [FLINK-27451] Enable the validator plugin in webhook

Aitozi commented on code in PR #190:
URL: https://github.com/apache/flink-kubernetes-operator/pull/190#discussion_r862345942


##########
flink-kubernetes-webhook/src/main/java/org/apache/flink/kubernetes/operator/admission/FlinkOperatorWebhook.java:
##########
@@ -57,8 +59,8 @@ public class FlinkOperatorWebhook {
     public static void main(String[] args) throws Exception {
         EnvUtils.logEnvironmentInfo(LOG, "Flink Kubernetes Webhook", args);
         FlinkConfigManager configManager = new FlinkConfigManager();
-        AdmissionHandler endpoint =
-                new AdmissionHandler(new FlinkValidator(new DefaultValidator(configManager)));
+        Set<FlinkResourceValidator> validators = ValidatorUtils.discoverValidators(configManager);

Review Comment:
   The env `FLINK_PLUGINS_DIR` has been set in the `flink-operator.yaml` for webhook container



-- 
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: issues-unsubscribe@flink.apache.org

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