Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ public class OperatorConstant {

public static String CATEGORY_PREDEFINED_ID = "96a3b07a-3439-4557-a835-525faad60ca3";

public static String CATEGORY_DATAMATE_ID = "431e7798-5426-4e1a-aae6-b9905a836b34";

public static String CATEGORY_DATA_JUICER_ID = "79b385b4-fde8-4617-bcba-02a176938996";

public static String CATEGORY_OTHER_VENDOR_ID = "f00eaa3e-96c1-4de4-96cd-9848ef5429ec";

public static Map<String, String> CATEGORY_MAP = new HashMap<>();

static {
Expand All @@ -44,5 +48,7 @@ public class OperatorConstant {
CATEGORY_MAP.put("audio", CATEGORY_AUDIO_ID);
CATEGORY_MAP.put("video", CATEGORY_VIDEO_ID);
CATEGORY_MAP.put("all", CATEGORY_ALL_ID);
CATEGORY_MAP.put("datamate", CATEGORY_DATAMATE_ID);
CATEGORY_MAP.put("data-juicer", CATEGORY_DATA_JUICER_ID);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ protected OperatorDto parseYaml(InputStream yamlContent) {
List<String> categories = new ArrayList<>();
categories.add(OperatorConstant.CATEGORY_MAP.get(toLowerCaseIfNotNull(content.get("language"))));
categories.add(OperatorConstant.CATEGORY_MAP.get(toLowerCaseIfNotNull(content.get("modal"))));
categories.add(OperatorConstant.CATEGORY_MAP.getOrDefault(toLowerCaseIfNotNull(content.get("vendor")),
OperatorConstant.CATEGORY_OTHER_VENDOR_ID));
categories.add(OperatorConstant.CATEGORY_CUSTOMIZED_ID);
operator.setCategories(categories);
return operator;
};
}

/**
* 从压缩包内读取指定路径的 yaml 文件并解析为指定类型
Expand Down
3 changes: 0 additions & 3 deletions deployment/helm/datamate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ backend-python:
mountPath: /var/log/datamate

gateway:
service:
type: NodePort
nodePort: 30000
volumes:
- *logVolume
volumeMounts:
Expand Down
Loading