Skip to content

Commit

Permalink
Merge pull request #20 from projectsyn/role
Browse files Browse the repository at this point in the history
Add RBAC rule to allow interacting with Leases for leader election
  • Loading branch information
ccremer authored May 12, 2021
2 parents 0d1975a + f156d3a commit 2c91b85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ jobs:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{steps.build_changelog.outputs.changelog}}
prerelease: "${{ contains(github.ref, '-rc') }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 4 additions & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ parameters:
extraArgs: []
cluster_role_rules:
- apiGroups: ['']
resources: [namespaces]
resources: [namespaces, namespaces/status]
verbs:
- get
- list
Expand All @@ -46,3 +46,6 @@ parameters:
- apiGroups: [extensions]
resources: [networkpolicies]
verbs: ['*']
- apiGroups: [coordination.k8s.io]
resources: [leases]
verbs: ['*']

0 comments on commit 2c91b85

Please sign in to comment.