-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): Correct k3s version used for e2e testing (#172)
* Add min/max k3s version used for testing I'm adding both so in the future we can test both extremes, but for now I'm going to PR just using 1 of them. * go generate * Add helper script to grab K3S versions as ENVs and use that in local-e2e * Make debug output actually create envs that should work in GHA instead of just human debug output * Source k3s version from `build.yaml` for GHA too * Fix job step ordering so yq will be installed when k3s version env is set * remove conflicting and unused ids * Fix helm-locker yq step * Export tag style of k3s versions * Use tags directly in GHA
- Loading branch information
1 parent
d84ee5f
commit 5ffb997
Showing
7 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
rancherProjectMonitoringVersion: 0.3.4 | ||
rancherProjectMonitoringVersion: 0.3.4 | ||
k3sTestingMaxVersion: v1.32.1+k3s1 | ||
k3sTestingMinVersion: v1.30.9+k3s1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
SCRIPT_PATH="$(realpath ${BASH_SOURCE[0]})" | ||
PROJECT_ROOT="$(dirname $(dirname $SCRIPT_PATH))" | ||
BUILD_YAML="$PROJECT_ROOT/build.yaml" | ||
|
||
export K3S_MAX_VERSION=$(yq '.k3sTestingMaxVersion' $BUILD_YAML) | ||
export K3S_MIN_VERSION=$(yq '.k3sTestingMinVersion' $BUILD_YAML) | ||
|
||
function print_version_debug() { | ||
echo "K3S_MAX_VERSION=$K3S_MAX_VERSION" | ||
echo "K3S_MAX_VERSION_TAG=${K3S_MAX_VERSION/+/-}" | ||
echo "K3S_MIN_VERSION=$K3S_MIN_VERSION" | ||
echo "K3S_MIN_VERSION_TAG=${K3S_MIN_VERSION/+/-}" | ||
} | ||
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then print_version_debug "$1"; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters