Skip to content

Commit 5fac77d

Browse files
committed
fix: talosctl exclude prereleases and add version test
Signed-off-by: Tom Plant <[email protected]>
1 parent 793a947 commit 5fac77d

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

src/talosctl/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ $nanolayer_location \
1616
install \
1717
devcontainer-feature \
1818
"ghcr.io/devcontainers-extra/features/gh-release:1" \
19-
--option repo='siderolabs/talos' --option binaryNames='talosctl' --option version="$VERSION"
19+
--option repo='siderolabs/talos' --option binaryNames='talosctl' --option version="$VERSION" --option releaseTagRegex='^(?!.*(alpha|beta)).*$'
2020

2121
echo 'Done!'

test/talosctl/scenarios.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@
44
"features": {
55
"talosctl": {}
66
}
7+
},
8+
"test_specific_version": {
9+
"image": "mcr.microsoft.com/devcontainers/base:debian",
10+
"features": {
11+
"talosctl": {
12+
"version": "v1.8.0"
13+
}
14+
}
715
}
816
}

test/talosctl/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ set -e
44

55
source dev-container-features-test-lib
66

7-
check "talosctl version --client" talosctl version --client
7+
check "talosctl is installed" talosctl version --client
88

99
reportResults
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
source dev-container-features-test-lib
6+
7+
check "talosctl version is equal to v1.8.0" sh -c "talosctl version --client | grep 'v1.8.0'"
8+
9+
reportResults

0 commit comments

Comments
 (0)