Skip to content

Commit

Permalink
add labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ChengJie1053 committed Sep 17, 2023
1 parent 0bac2bf commit 30602ba
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
import org.apache.flink.kubernetes.shaded.io.fabric8.kubernetes.client.dsl.NonNamespaceOperation;

import java.io.Closeable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -210,6 +212,9 @@ public FlinkDeployment getFlinkDeployment(String name, String namespace) {
ObjectMeta metadata = new ObjectMeta();
metadata.setName(name);
metadata.setNamespace(namespace);
Map<String, String> labels = new HashMap<>();
labels.put("from-app", "linkis");
metadata.setLabels(labels);
flinkDeployment.setMetadata(metadata);
return flinkDeployment;
}
Expand Down

0 comments on commit 30602ba

Please sign in to comment.