zhengcanbin commented on a change in pull request #11489: [FLINK-15640][k8s]
Support to set labels and node-selector for jobmanager and taskmanager pod
URL: https://github.com/apache/flink/pull/11489#discussion_r396906973
##########
File path:
flink-kubernetes/src/main/java/org/apache/flink/kubernetes/kubeclient/parameters/KubernetesTaskManagerParameters.java
##########
@@ -59,7 +62,15 @@ public KubernetesTaskManagerParameters(
@Override
public Map<String, String> getLabels() {
- return KubernetesUtils.getTaskManagerLabels(getClusterId());
+ final Map<String, String> labels = new
HashMap<>(KubernetesUtils.getTaskManagerLabels(getClusterId()));
+
flinkConfig.getOptional(KubernetesConfigOptions.TASK_MANAGER_LABELS).ifPresent(labels::putAll);
Review comment:
The same precedence problem?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services