Skip to content

Commit fd6edb6

Browse files
committed
delete stale RBAC to prevent Helm ownership conflicts
1 parent e1a83ff commit fd6edb6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test-helm-charts.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,13 @@ jobs:
3434
- name: Create KIND Cluster
3535
uses: helm/kind-action@92086f6be054225fa813e0a4b13787fc9088faab # v1.13.0
3636

37+
- name: Cleanup stale cluster-scoped RBAC before CT install
38+
run: |
39+
echo "Deleting stale cluster-scoped RBAC to avoid Helm ownership conflicts..."
40+
kubectl delete clusterrole toolhive-operator-manager-role --ignore-not-found=true
41+
kubectl delete clusterrole toolhive-registry-api-role --ignore-not-found=true
42+
kubectl delete clusterrolebinding toolhive-operator-manager-rolebinding --ignore-not-found=true
43+
kubectl delete clusterrolebinding toolhive-registry-api-rolebinding --ignore-not-found=true
44+
3745
- name: Run chart-testing (install)
3846
run: ct install --config ct-install.yaml

0 commit comments

Comments
 (0)