Skip to content

Commit

Permalink
hardcode kube-bench v0.7.0 to fix 'glibc X not found' errors (#5087)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Feb 21, 2024
1 parent 7369d36 commit 029928a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions testgrid/specs/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,7 @@
version: "latest"
postUpgradeScript: |
echo "running CIS Kubernetes Benchmark Checks"
kube_bench_version="$(curl -s https://api.github.com/repos/aquasecurity/kube-bench/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')"
curl -L https://github.com/aquasecurity/kube-bench/releases/download/v${kube_bench_version}/kube-bench_${kube_bench_version}_linux_amd64.tar.gz | tar -xz
curl -L https://github.com/aquasecurity/kube-bench/releases/download/v0.7.0/kube-bench_0.7.0_linux_amd64.tar.gz | tar -xz
./kube-bench --config-dir=`pwd`/cfg --config=`pwd`/cfg/config.yaml --exit-code=1
- name: k8s129x_reserved_resources
installerSpec:
Expand Down Expand Up @@ -2230,8 +2229,7 @@
version: "latest"
postInstallScript: |
echo "running CIS Kubernetes Benchmark Checks"
kube_bench_version="$(curl -s https://api.github.com/repos/aquasecurity/kube-bench/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/')"
curl -L https://github.com/aquasecurity/kube-bench/releases/download/v${kube_bench_version}/kube-bench_${kube_bench_version}_linux_amd64.tar.gz | tar -xz
curl -L https://github.com/aquasecurity/kube-bench/releases/download/v0.7.0/kube-bench_0.7.0_linux_amd64.tar.gz | tar -xz
./kube-bench --config-dir=`pwd`/cfg --config=`pwd`/cfg/config.yaml --exit-code=1
echo "Checking kubectl with kube/config"
echo "Kubeconfig was $KUBECONFIG"
Expand Down

0 comments on commit 029928a

Please sign in to comment.