Skip to content

[release-3.14] Update net and crypto pkgs #823

[release-3.14] Update net and crypto pkgs

[release-3.14] Update net and crypto pkgs #823

Workflow file for this run

name: OLM-Tests
on:
push:
branches:
- main
- release-[0-9]+.[0-9]+
pull_request:
branches:
- main
- release-[0-9]+.[0-9]+
jobs:
main:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
- name: Download binaries
run: |
make download-binaries
- name: Verify bundle
run: |
make bundle
git diff --exit-code
- name: Create and set up K8s KinD Cluster
run: |
make test-cluster
- name: Build and Push Test Container Image and Bundle/Bundle Index Images
run: |
make build-and-push-bundle-images REPO=localhost:5000 VERSION_TAG=${GITHUB_SHA}
- name: Deploy OLM
run: |
make deploy-olm
- name: Deploy resources on KIND cluster to install Gatekeeper
run: |
make deploy-using-olm REPO=localhost:5000 VERSION_TAG=${GITHUB_SHA} NAMESPACE=mygatekeeper
while ! kubectl -n mygatekeeper get deployment gatekeeper-operator-controller; do \
echo "Waiting for operator deployment"; \
sleep 2; \
done
kubectl -n mygatekeeper wait deployment/gatekeeper-operator-controller --for condition=Available --timeout=90s
- name: E2E Tests
run: |
kubectl -n mygatekeeper logs deployment/gatekeeper-operator-controller -c manager -f > operator.log &
make test-e2e NAMESPACE=mygatekeeper
kubectl delete --wait namespace mygatekeeper
- name: Debug
if: ${{ failure() }}
run: |
echo "::group::Operator Logs"
cat operator.log
echo "::endgroup::"
echo "::group::Deployments"
kubectl -n mygatekeeper get deployments -o yaml
echo "::endgroup::"