Skip to content

Commit

Permalink
Install cri-tools from master
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed Apr 29, 2024
1 parent d5666af commit 23321c6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 25 deletions.
18 changes: 8 additions & 10 deletions dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
dependencies:
- name: go-build
version: 1.21
refPaths:
- path: go.mod
match: go
- path: .github/workflows/integration.yml
match: GO_VERSION

- name: go
version: 1.22
refPaths:
- path: .github/workflows/verify.yml
match: GO_VERSION
- path: .github/workflows/integration.yml
match: GO_VERSION
- path: .github/workflows/test.yml
match: GO_VERSION
- path: .github/workflows/release-branch-forward.yml
Expand Down Expand Up @@ -46,8 +52,6 @@ dependencies:
- name: cri-tools
version: v1.30.0
refPaths:
- path: scripts/versions
match: cri-tools
- path: contrib/test/ci/vars.yml
match: cri_tools_git_version

Expand All @@ -57,12 +61,6 @@ dependencies:
- path: scripts/versions
match: buildah

- name: runc
version: main
refPaths:
- path: scripts/versions
match: runc

- name: bats
version: v1.11.0
refPaths:
Expand Down
38 changes: 25 additions & 13 deletions scripts/github-actions-setup
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,29 @@ prepare_system() {
sudo systemctl restart systemd-journald
}

install_bats() {
git clone https://github.com/bats-core/bats-core
pushd bats-core
git checkout "${VERSIONS["bats"]}"
sudo ./install.sh /usr/local
install_from_github_org_repo() {
URL=https://github.com/$1/$2
DIR=$(mktemp -ud)

git clone "$URL" "$DIR"
pushd "$DIR"
git checkout "$3"
"${@:4}"
popd
rm -rf bats-core
sudo rm -rf "$DIR"
}

install_bats() {
install_from_github_org_repo \
bats-core \
bats-core \
"${VERSIONS["bats"]}" \
sudo ./install.sh /usr/local

mkdir -p ~/.parallel
touch ~/.parallel/will-cite

bats --version
}

install_conmon() {
Expand All @@ -82,14 +96,12 @@ install_conmonrs() {
}

install_critools() {
URL=https://github.com/kubernetes-sigs/cri-tools
install_from_github_org_repo \
kubernetes-sigs \
cri-tools \
master \
sudo -E PATH="$PATH" make BINDIR=/usr/bin install

git clone $URL
pushd cri-tools
git checkout "${VERSIONS["cri-tools"]}"
sudo -E PATH="$PATH" make BINDIR=/usr/bin install
popd
sudo rm -rf cri-tools
sudo critest --version
sudo crictl --version
}
Expand Down
2 changes: 0 additions & 2 deletions scripts/versions
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
declare -A VERSIONS=(
["cni-plugins"]=v1.4.1
["conmon"]=v2.1.10
["cri-tools"]=v1.30.0
["runc"]=main
["bats"]=v1.11.0
["buildah"]=v1.34.0
)

0 comments on commit 23321c6

Please sign in to comment.