Skip to content

Commit

Permalink
Fix #493 - Upgrade Operator SDK to 1.35 (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardozanini authored Sep 27, 2024
1 parent e91495d commit cd39bac
Show file tree
Hide file tree
Showing 193 changed files with 38,842 additions and 36,591 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-container-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

env:
REGISTRY_STORAGE_DELETE_ENABLED : true
GO_VERSION: 1.21
GO_VERSION: 1.22

jobs:
unit-tests:
Expand Down Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Setup golang
uses: actions/setup-go@v5
with:
go-version: 1.21
go-version: 1.22
- name: Checkout code
uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- ".ci/jenkins/**"

env:
GO_VERSION: 1.21
GO_VERSION: 1.22

jobs:
unit-tests:
Expand Down
45 changes: 28 additions & 17 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ on:
- ".ci/jenkins/**"

env:
GO_VERSION: 1.21
GO_VERSION: 1.22
PYTHON_VERSION: "3.10"
KIND_VERSION: v0.20.0
KNATIVE_VERSION: v1.13.2
KNATIVE_VERSION: v1.12.5
OPERATOR_IMAGE_NAME: "127.0.0.1:5001/kogito-serverless-operator:0.0.1"

jobs:
Expand All @@ -26,9 +26,10 @@ jobs:
cancel-in-progress: true
timeout-minutes: 120
runs-on: ubuntu-latest
name: End-to-end tests (Kind)
name: End-to-End Tests (Kind)

steps:
- name: Install dependencies
- name: Install Dependencies
run: |
sudo apt-get update && \
sudo apt-get -y install --no-install-recommends \
Expand All @@ -37,6 +38,7 @@ jobs:
libbtrfs-dev \
libdevmapper-dev \
libkrb5-dev
- name: Checkout Code
uses: actions/checkout@v3
with:
Expand All @@ -48,7 +50,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}
cache: true

- name: Setup Python for cekit
- name: Setup Python for Cekit
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand All @@ -60,49 +62,58 @@ jobs:
pip install -r images/requirements.txt
cekit --version
- name: Setup Kind cluster
- name: Setup Kind Cluster
run: make KIND_VERSION=${{ env.KIND_VERSION }} BUILDER=docker create-cluster

- name: Deploy Knative Eventing and Serving
run: make KNATIVE_VERSION=${{ env.KNATIVE_VERSION }} deploy-knative

- name: Set OPERATOR_IMAGE_NAME to point to Kind's local registry
- name: Set OPERATOR_IMAGE_NAME to Point to Kind's Local Registry
run: echo "OPERATOR_IMAGE_NAME=${{ env.OPERATOR_IMAGE_NAME }}" >> $GITHUB_ENV

- name: Build and load operator image
- name: Build and Load Operator Image
run: |
make container-build BUILDER=docker IMG=${{ env.OPERATOR_IMAGE_NAME }}
kind load docker-image ${{ env.OPERATOR_IMAGE_NAME }}
- name: Check pods
- name: Check Pods
run: |
kubectl version
kubectl get pods -A
- name: Deploy operator
- name: Deploy Operator
run: |
make deploy IMG=${{ env.OPERATOR_IMAGE_NAME }}
kubectl wait pod -A -l control-plane=sonataflow-operator --for condition=Ready
- name: Run tests
run: make test-e2e
- name: Run E2E Tests for Non-Persistent Flows
run: make test-e2e label=flows-non-persistence

- name: Run E2E Tests for Persistent Flows
run: make test-e2e label=flows-persistence

- name: Run E2E Tests for Platform
run: make test-e2e label=platform

- name: Run E2E Tests for Cluster Platform
run: make test-e2e label=cluster

- name: Retrieve cluster events and list pods
- name: Get KIND Logs After Failure
if: failure()
run: |
kubectl get events
kubectl get pod -A
- name: Export kind logs
- name: Export KIND Logs
if: always()
run: |
mkdir -p /tmp/kind/logs
kind export logs --loglevel=debug /tmp/kind/logs
- name: Upload kind logs
- name: Upload KIND Logs
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: kind-logs-${{ env.JOB_NAME }}-${{ github.run_id }}
name: kind-logs-${{ job.name }}-${{ github.run_id }}
path: /tmp/kind/logs
retention-days: 1
Loading

0 comments on commit cd39bac

Please sign in to comment.