Skip to content

Commit

Permalink
[controllers/datadogagent/clusteragent] Add perms to create events (#443
Browse files Browse the repository at this point in the history
)
  • Loading branch information
davidor committed Feb 4, 2022
1 parent 96fa79c commit a65ce8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/datadogagent/clusteragent.go
Expand Up @@ -1205,6 +1205,11 @@ func buildClusterAgentClusterRole(dda *datadoghqv1alpha1.DatadogAgent, name, age
datadoghqv1alpha1.GetVerb,
},
},
rbacv1.PolicyRule{
APIGroups: []string{datadoghqv1alpha1.CoreAPIGroup},
Resources: []string{datadoghqv1alpha1.EventsResource},
Verbs: []string{datadoghqv1alpha1.CreateVerb},
},
)

if dda.Spec.ClusterAgent.Config.ExternalMetrics.UseDatadogMetrics {
Expand Down

0 comments on commit a65ce8a

Please sign in to comment.