From 2bdc1fafedee6df59827cfbbe4bac6dfa3f6086f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Tue, 4 Jun 2024 10:12:09 +0200 Subject: [PATCH] Update default Camel K version to 2.3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Pupier --- .github/workflows/insider.yml | 2 +- .github/workflows/main.yml | 2 +- CHANGELOG.md | 2 ++ src/test/suite/versionUtils.test.ts | 16 ++++++++-------- src/versionUtils.ts | 4 ++-- 5 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/insider.yml b/.github/workflows/insider.yml index bac7505b6..231eed925 100644 --- a/.github/workflows/insider.yml +++ b/.github/workflows/insider.yml @@ -67,7 +67,7 @@ jobs: - name: Configure Kamel (ubuntu) if: matrix.os == 'ubuntu-latest' run: | - curl -Lo kamel.tar.gz https://github.com/apache/camel-k/releases/download/v2.3.1/camel-k-client-2.3.1-linux-amd64.tar.gz + curl -Lo kamel.tar.gz https://github.com/apache/camel-k/releases/download/v2.3.2/camel-k-client-2.3.2-linux-amd64.tar.gz tar -zxvf kamel.tar.gz chmod +x kamel sudo mv kamel /usr/local/bin/ diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a30c54d5d..ad8a0c578 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,7 +69,7 @@ jobs: - name: Configure Kamel (ubuntu) if: matrix.os == 'ubuntu-latest' run: | - curl -Lo kamel.tar.gz https://github.com/apache/camel-k/releases/download/v2.3.1/camel-k-client-2.3.1-linux-amd64.tar.gz + curl -Lo kamel.tar.gz https://github.com/apache/camel-k/releases/download/v2.3.2/camel-k-client-2.3.2-linux-amd64.tar.gz tar -zxvf kamel.tar.gz chmod +x kamel sudo mv kamel /usr/local/bin/ diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dbaeeff4..e0b7acace 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to the "vscode-camelk" extension will be documented in this ## 0.0.42 +- Update default runtime version to v2.3.2 + ## 0.0.41 - Update Red Hat telemetry dependency to reduce number of event sent (startup information will be sent one time per day per user) diff --git a/src/test/suite/versionUtils.test.ts b/src/test/suite/versionUtils.test.ts index a96cdf91a..9988c5535 100644 --- a/src/test/suite/versionUtils.test.ts +++ b/src/test/suite/versionUtils.test.ts @@ -106,20 +106,20 @@ suite("VersionUtils check", () => { await validateVersion('2.2.0', Platform.LINUX, 'https://github.com/apache/camel-k/releases/download/v2.2.0/camel-k-client-2.2.0-linux-amd64.tar.gz'); }); - test("validate url for existing 2.3.0 version", async () => { - await validateVersion('2.3.0', Platform.LINUX, 'https://github.com/apache/camel-k/releases/download/v2.3.0/camel-k-client-2.3.0-linux-amd64.tar.gz'); - }); - test("validate url for existing 2.3.1 version", async () => { await validateVersion('2.3.1', Platform.LINUX, 'https://github.com/apache/camel-k/releases/download/v2.3.1/camel-k-client-2.3.1-linux-amd64.tar.gz'); }); - test("validate url for existing 2.3.1 windows version", async () => { - await validateVersion('2.3.1', Platform.WINDOWS, 'https://github.com/apache/camel-k/releases/download/v2.3.1/camel-k-client-2.3.1-windows-amd64.tar.gz'); + test("validate url for existing 2.3.2 version", async () => { + await validateVersion('2.3.2', Platform.LINUX, 'https://github.com/apache/camel-k/releases/download/v2.3.2/camel-k-client-2.3.2-linux-amd64.tar.gz'); + }); + + test("validate url for existing 2.3.2 windows version", async () => { + await validateVersion('2.3.2', Platform.WINDOWS, 'https://github.com/apache/camel-k/releases/download/v2.3.2/camel-k-client-2.3.2-windows-amd64.tar.gz'); }); - test("validate url for existing 2.3.1 MacOS version", async () => { - await validateVersion('2.3.1', Platform.MACOS, 'https://github.com/apache/camel-k/releases/download/v2.3.1/camel-k-client-2.3.1-darwin-amd64.tar.gz'); + test("validate url for existing 2.3.2 MacOS version", async () => { + await validateVersion('2.3.2', Platform.MACOS, 'https://github.com/apache/camel-k/releases/download/v2.3.2/camel-k-client-2.3.2-darwin-amd64.tar.gz'); }); test("validate invalid url for xyz1 version", async () => { diff --git a/src/versionUtils.ts b/src/versionUtils.ts index 1567577b3..1cd3f2546 100644 --- a/src/versionUtils.ts +++ b/src/versionUtils.ts @@ -25,13 +25,13 @@ import { platform } from './installer'; import fetch from 'cross-fetch'; import { Platform } from './shell'; -export const version = '2.3.1'; //need to retrieve this if possible, but have a default +export const version = '2.3.2'; //need to retrieve this if possible, but have a default /* * Can be retrieved using `curl -i https://api.github.com/repos/apache/camel-k/releases/latest | grep last-modified` * To be updated when updating the default "version" attribute */ -const LAST_MODIFIED_DATE_OF_DEFAULT_VERSION = 'Mon, 06 May 2024 08:02:46 GMT'; +const LAST_MODIFIED_DATE_OF_DEFAULT_VERSION = 'Tue, 04 Jun 2024 07:40:42 GMT'; let latestVersionFromOnline: string; export async function testVersionAvailable(versionToUse: string): Promise {