From 2f3054f90f4d75ad3e5e1c4307b8d5d131798cb1 Mon Sep 17 00:00:00 2001 From: Matteo Gastaldello Date: Mon, 11 May 2026 16:10:26 +0200 Subject: [PATCH 1/2] ci: reorder steps to extract latest app version and update Chart.yaml --- .github/workflows/release-pullrequest.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-pullrequest.yaml b/.github/workflows/release-pullrequest.yaml index b953971..bc33617 100644 --- a/.github/workflows/release-pullrequest.yaml +++ b/.github/workflows/release-pullrequest.yaml @@ -39,18 +39,18 @@ jobs: app_id: ${{ secrets.APP_ID }} private_key: ${{ secrets.PRIVATE_KEY }} - - name: Extract latest App Version - uses: tdemin/find-latest-tag@v1 - id: app_version - with: - repo: https://${{ steps.authenticate.outputs.token }}@github.com/${{ env.REPO_APP_NAME }}.git - - name: Extract latest Chart Version uses: tdemin/find-latest-tag@v1 id: chart_version with: repo: https://${{ steps.authenticate.outputs.token }}@github.com/${{ github.repository }}.git + - name: Extract latest App Version + uses: tdemin/find-latest-tag@v1 + id: app_version + with: + repo: https://${{ steps.authenticate.outputs.token }}@github.com/${{ env.REPO_APP_NAME }}.git + - name: Checkout uses: actions/checkout@v3 @@ -68,14 +68,11 @@ jobs: - name: Print latest App Version run: echo ${{ steps.app_version.outputs.tag }} - - name: Replace APP_VERSION in ./chart/Chart.yaml + - name: Replace APP_VERSION in Chart.yaml run: sed -i 's/APP_VERSION/${{ steps.app_version.outputs.tag }}/g' ./chart/Chart.yaml - name: Set up Helm uses: azure/setup-helm@v4.1.0 - - name: Helm Dependency Update - run: helm dependency update ./chart - - name: Helm lint run: helm lint ./chart \ No newline at end of file From 40b6cac6788b2a7ad0d60dd0b63f6e8b31dfc623 Mon Sep 17 00:00:00 2001 From: Matteo Gastaldello Date: Mon, 11 May 2026 16:10:31 +0200 Subject: [PATCH 2/2] feat: add additional permissions for events in ClusterRole --- chart/templates/clusterrole.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chart/templates/clusterrole.yaml b/chart/templates/clusterrole.yaml index ddbcb15..324a3d2 100644 --- a/chart/templates/clusterrole.yaml +++ b/chart/templates/clusterrole.yaml @@ -33,3 +33,7 @@ rules: - apiGroups: [""] resources: ["events"] verbs: ["create", "patch", "update"] + + - apiGroups: ["events.k8s.io"] + resources: ["events"] + verbs: ["create", "patch", "update"]