sijie commented on a change in pull request #8988:
URL: https://github.com/apache/pulsar/pull/8988#discussion_r549620689
##########
File path:
pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/api/SourcesImpl.java
##########
@@ -719,4 +728,14 @@ public SourceConfig getSourceInfo(final String tenant,
worker().getWorkerConfig().getValidateConnectorConfig());
return SourceConfigUtils.convert(sourceConfig, sourceDetails);
}
+
+ private static boolean hasPackageTypePrefix(String destPkgUrl) {
+ return Arrays.stream(PackageType.values()).anyMatch(type ->
destPkgUrl.startsWith(type.toString()));
+ }
+
+ private File downloadPackageFile(String packageName) throws IOException,
PulsarAdminException {
Review comment:
@zymap The purpose of introducing a package registry is to avoid
checking the packages every time when you create a function using this package.
If we need to validate the function package in the package registry, let's add
the functionality there.
----------------------------------------------------------------
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]