diff --git a/.github/workflows/conformance.yaml b/.github/workflows/conformance.yaml index e8d3299594..c300e3a611 100644 --- a/.github/workflows/conformance.yaml +++ b/.github/workflows/conformance.yaml @@ -262,6 +262,12 @@ jobs: make kind-install-kyverno - name: Wait for kyverno ready uses: ./.github/actions/kyverno-wait-ready + - name: Install latest Kyverno CLI + run: | + download_url=$(curl -s "https://api.github.com/repos/kyverno/kyverno/releases/latest" | grep browser_download_url | grep kyverno-cli | grep linux_x86_64.tar.gz\" | cut -d '"' -f 4) + curl -L "$download_url" -o kyverno-cli.tar.gz + tar -xvf kyverno-cli.tar.gz + sudo cp kyverno /usr/local/bin/ - name: Test policy library with kuttl run: | cd policies