From 7a0a6803dfcb96842b12f447e41217746f189898 Mon Sep 17 00:00:00 2001 From: Enrico Olivelli Date: Wed, 7 Jul 2021 19:01:10 +0200 Subject: [PATCH] Pulsar Adapters: add download section (only source tarball) (#11247) Co-authored-by: Enrico Olivelli --- site2/website/pages/en/download.js | 39 ++++++++++++++++++++++ site2/website/pulsar-adapters-release.json | 3 ++ 2 files changed, 42 insertions(+) create mode 100644 site2/website/pulsar-adapters-release.json diff --git a/site2/website/pages/en/download.js b/site2/website/pages/en/download.js index e2a225a385c68..a60efccc9b555 100644 --- a/site2/website/pages/en/download.js +++ b/site2/website/pages/en/download.js @@ -12,6 +12,7 @@ const translate = require('../../server/translate.js').translate; const siteConfig = require(`${CWD}/siteConfig.js`); const releases = require(`${CWD}/releases.json`); const pulsarManagerReleases = require(`${CWD}/pulsar-manager-release.json`) +const pulsarAdaptersReleases = require(`${CWD}/pulsar-adapters-release.json`) const connectors = require(`${CWD}/data/connectors.js`); function getLatestArchiveMirrorUrl(version, type) { @@ -22,6 +23,10 @@ function getLatestOffloadersMirrorUrl(version) { return `https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-${version}/apache-pulsar-offloaders-${version}-bin.tar.gz` } +function getLatestAdaptersMirrorUrl(version) { + return `https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-adapters-${version}/apache-pulsar-adapters-${version}-src.tar.gz` +} + function distUrl(version, type) { return `https://www.apache.org/dist/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz` } @@ -30,6 +35,10 @@ function distOffloadersUrl(version) { return `https://www.apache.org/dist/pulsar/pulsar-${version}/apache-pulsar-offloaders-${version}-bin.tar.gz` } +function distAdaptersUrl(version) { + return `https://downloads.apache.org/pulsar/pulsar-adapters-${version}/apache-pulsar-adapters-${version}-src.tar.gz` +} + function archiveUrl(version, type) { if (version.includes('incubating')) { return `https://archive.apache.org/dist/incubator/pulsar/pulsar-${version}/apache-pulsar-${version}-${type}.tar.gz` @@ -62,6 +71,7 @@ class Download extends React.Component { render() { const latestVersion = releases[0]; const latestPulsarManagerVersion = pulsarManagerReleases[0]; + const latestPulsarAdaptersVersion = pulsarAdaptersReleases[0]; const latestArchiveMirrorUrl = getLatestArchiveMirrorUrl(latestVersion, 'bin'); const latestSrcArchiveMirrorUrl = getLatestArchiveMirrorUrl(latestVersion, 'src'); const latestPulsarManagerArchiveMirrorUrl = getLatestPulsarManagerArchiveMirrorUrl(latestPulsarManagerVersion, 'bin'); @@ -283,6 +293,35 @@ class Download extends React.Component { )} + +
+

Pulsar Adapters

+
+
+

Current version (Stable) {latestPulsarAdaptersVersion}

+ + + + + + + + + + + + + + + +
ReleaseLinkCrypto files
Source + apache-pulsar-adapters-{latestPulsarAdaptersVersion}-src.tar.gz + + asc,  + sha512 +
+ Pulsar Adapters are available on Maven Central, there is no binary package. +

Apache Pulsar Manager downloads


diff --git a/site2/website/pulsar-adapters-release.json b/site2/website/pulsar-adapters-release.json new file mode 100644 index 0000000000000..7bddc6a4ab867 --- /dev/null +++ b/site2/website/pulsar-adapters-release.json @@ -0,0 +1,3 @@ +[ + "2.8.0" +]