Skip to content

Commit

Permalink
fix clusterrole for kustomize (#295)
Browse files Browse the repository at this point in the history
* fix clusterrole for kustomize
  • Loading branch information
celenechang committed May 3, 2021
1 parent e026d84 commit e70c981
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,18 @@ rules:
- get
- list
- watch
- apiGroups:
- coordination.k8s.io
resources:
- leases
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- datadoghq.com
resources:
Expand Down
1 change: 1 addition & 0 deletions controllers/datadogagent_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ type DatadogAgentReconciler struct {
// +kubebuilder:rbac:groups=apps,resources=daemonsets,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=policy,resources=poddisruptionbudgets,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=networking.k8s.io,resources=networkpolicies,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;watch;create;update;patch;delete

// Orchestrator explorer
// +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch
Expand Down

0 comments on commit e70c981

Please sign in to comment.