zentol commented on a change in pull request #13190: URL: https://github.com/apache/flink/pull/13190#discussion_r473221865
########## File path: flink-kubernetes/src/main/java/org/apache/flink/kubernetes/KubernetesClusterClientFactory.java ########## @@ -51,10 +51,7 @@ public boolean isCompatibleWith(Configuration configuration) { @Override public KubernetesClusterDescriptor createClusterDescriptor(Configuration configuration) { checkNotNull(configuration); - if (!configuration.contains(KubernetesConfigOptions.CLUSTER_ID)) { - final String clusterId = generateClusterId(); - configuration.setString(KubernetesConfigOptions.CLUSTER_ID, clusterId); - } + ensureClusterIdIsSet(configuration); return new KubernetesClusterDescriptor(configuration, KubeClientFactory.fromConfiguration(configuration)); Review comment: The YarnClusterDescriptor actually works quite similarly; things like custom names and application types are being set in the constructor. The `ClusterDescriptor` just doesn't handle this case very well, but admittedly we do not really have a use-case for deploying multiples clusters. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org