spoon-lz commented on a change in pull request #18119:
URL: https://github.com/apache/flink/pull/18119#discussion_r782661091



##########
File path: 
flink-kubernetes/src/main/java/org/apache/flink/kubernetes/utils/KubernetesUtils.java
##########
@@ -486,6 +487,26 @@ public static String 
tryToGetPrettyPrintYaml(KubernetesResource kubernetesResour
         }
     }
 
+    /** Checks if hostNetwork is enabled. */
+    public static boolean isHostNetwork(Configuration configuration) {
+        return 
configuration.getBoolean(KubernetesConfigOptions.KUBERNETES_HOSTNETWORK_ENABLED);
+    }
+
+    /** Parse port from webUrl. */
+    public static Integer gerRestBindPort(String webUrl) {

Review comment:
       Create a new class like `ResourceManagerUtils` or add this method in 
`AbstractResourceManagerDriver`?




-- 
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