Skip to content

Commit

Permalink
fix(limb): add events creation permission
Browse files Browse the repository at this point in the history
closes #59
  • Loading branch information
Frank Mai committed May 9, 2020
1 parent ff8b36e commit ee19203
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deploy/e2e/all_in_one.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,13 @@ metadata:
app.kubernetes.io/version: master
name: octopus-manager-role
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
Expand Down
7 changes: 7 additions & 0 deletions deploy/e2e/all_in_one_without_webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,13 @@ metadata:
app.kubernetes.io/version: master
name: octopus-manager-role
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
Expand Down
7 changes: 7 additions & 0 deletions deploy/manifests/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- ""
resources:
- events
verbs:
- create
- patch
- apiGroups:
- ""
resources:
Expand Down
1 change: 1 addition & 0 deletions pkg/limb/controller/devicelink.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type DeviceLinkReconciler struct {

// +kubebuilder:rbac:groups=edge.cattle.io,resources=devicelinks,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=edge.cattle.io,resources=devicelinks/status,verbs=get;update;patch
// +kubebuilder:rbac:groups="",resources=events,verbs=create;patch

func (r *DeviceLinkReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
var ctx = context.Background()
Expand Down

0 comments on commit ee19203

Please sign in to comment.