Skip to content

Commit

Permalink
Add update permission for ippool resource
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielXLee committed Jul 19, 2021
1 parent 08c66d9 commit 0b057ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64,linux/arm,linux/ppc64le
platforms: linux/amd64
file: ./Dockerfile
push: true
tags: quay.io/danielxlee/knitnet-operator:latest
1 change: 1 addition & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ rules:
- ippools
verbs:
- create
- update
- apiGroups:
- discovery.k8s.io
resources:
Expand Down
2 changes: 1 addition & 1 deletion controllers/knitnet_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const (
// +kubebuilder:rbac:groups=operator.openshift.io,resources=dnses,verbs=get;list;watch;update

// Only for calico network plugin enabled
// +kubebuilder:rbac:groups=crd.projectcalico.org,resources=ippools,verbs=create
// +kubebuilder:rbac:groups=crd.projectcalico.org,resources=ippools,verbs=create;update

// +kubebuilder:rbac:groups=security.openshift.io,resources=securitycontextconstraints,verbs=get
// +kubebuilder:rbac:groups=monitoring.coreos.com,resources=servicemonitors,verbs=get;create
Expand Down

0 comments on commit 0b057ac

Please sign in to comment.