Skip to content

Commit

Permalink
CI: Use compatible tekton version v0.67
Browse files Browse the repository at this point in the history
The newer tekton versions changed CRD names, and so the operator
cannot find objects from a given CRD.

Signed-off-by: Andrej Krejcir <[email protected]>
  • Loading branch information
akrejcir committed Jul 31, 2024
1 parent 225b61f commit 8d9bcee
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions automation/common/versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ set -o pipefail

# This function will be used in release branches
function latest_patch_version() {
local repo="$1"
local minor_version="$2"
local org="$1"
local repo="$2"
local minor_version="$3"

# The loop is necessary, because GitHub API call cannot return more than 100 items
local latest_version=""
Expand All @@ -15,7 +16,7 @@ function latest_patch_version() {
# Declared separately to not mask return value
local versions_in_page
versions_in_page=$(
curl --fail -s "https://api.github.com/repos/kubevirt/${repo}/releases?per_page=100&page=${page}" |
curl --fail -s "https://api.github.com/repos/${org}/${repo}/releases?per_page=100&page=${page}" |
jq '.[] | select(.prerelease==false) | .tag_name' |
tr -d '"'
)
Expand Down Expand Up @@ -59,5 +60,5 @@ KUBEVIRT_VERSION=$(latest_version "kubevirt" "kubevirt")
# Latest released CDI version
CDI_VERSION=$(latest_version "kubevirt" "containerized-data-importer")

# Latest released Tekton version
TEKTON_VERSION=$(latest_version "tektoncd" "operator")
# Using LTS tekton version v0.67
TEKTON_VERSION=$(latest_patch_version "tektoncd" "operator" "v0.67")

0 comments on commit 8d9bcee

Please sign in to comment.