Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
Update default runtime version of Camel K to 2.3.3
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Jun 14, 2024
1 parent a9fd87e commit c43476d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/insider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.2/camel-k-client-2.3.2-linux-amd64.tar.gz
curl -Lo kamel.tar.gz https://github.com/apache/camel-k/releases/download/v2.3.3/camel-k-client-2.3.3-linux-amd64.tar.gz
tar -zxvf kamel.tar.gz
chmod +x kamel
sudo mv kamel /usr/local/bin/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.2/camel-k-client-2.3.2-linux-amd64.tar.gz
curl -Lo kamel.tar.gz https://github.com/apache/camel-k/releases/download/v2.3.3/camel-k-client-2.3.3-linux-amd64.tar.gz
tar -zxvf kamel.tar.gz
chmod +x kamel
sudo mv kamel /usr/local/bin/
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to the "vscode-camelk" extension will be documented in this

## 0.0.42

- Update default runtime version to v2.3.2
- Update default runtime version to v2.3.3

## 0.0.41

Expand Down
12 changes: 6 additions & 6 deletions src/test/suite/versionUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,16 +110,16 @@ suite("VersionUtils check", () => {
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.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.3 version", async () => {
await validateVersion('2.3.3', Platform.LINUX, 'https://github.com/apache/camel-k/releases/download/v2.3.3/camel-k-client-2.3.3-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.3 windows version", async () => {
await validateVersion('2.3.3', Platform.WINDOWS, 'https://github.com/apache/camel-k/releases/download/v2.3.3/camel-k-client-2.3.3-windows-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 url for existing 2.3.3 MacOS version", async () => {
await validateVersion('2.3.3', Platform.MACOS, 'https://github.com/apache/camel-k/releases/download/v2.3.3/camel-k-client-2.3.3-darwin-amd64.tar.gz');
});

test("validate invalid url for xyz1 version", async () => {
Expand Down
4 changes: 2 additions & 2 deletions src/versionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ import { platform } from './installer';
import fetch from 'cross-fetch';
import { Platform } from './shell';

export const version = '2.3.2'; //need to retrieve this if possible, but have a default
export const version = '2.3.3'; //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 = 'Tue, 04 Jun 2024 07:40:42 GMT';
const LAST_MODIFIED_DATE_OF_DEFAULT_VERSION = 'Mon, 10 Jun 2024 13:29:29 GMT';
let latestVersionFromOnline: string;

export async function testVersionAvailable(versionToUse: string): Promise<boolean> {
Expand Down

0 comments on commit c43476d

Please sign in to comment.