Skip to content

Commit

Permalink
add daemonsets list/watch for the cluster-agent (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nam Nguyen committed Jun 1, 2021
1 parent 62d4dc7 commit b802426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/datadogagent/clusteragent.go
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,7 @@ func buildClusterAgentClusterRole(dda *datadoghqv1alpha1.DatadogAgent, name, age

rbacRules = append(rbacRules, rbacv1.PolicyRule{
APIGroups: []string{datadoghqv1alpha1.AppsAPIGroup},
Resources: []string{datadoghqv1alpha1.DeploymentsResource, datadoghqv1alpha1.ReplicasetsResource},
Resources: []string{datadoghqv1alpha1.DeploymentsResource, datadoghqv1alpha1.ReplicasetsResource, datadoghqv1alpha1.DaemonsetsResource},
Verbs: []string{datadoghqv1alpha1.GetVerb, datadoghqv1alpha1.ListVerb, datadoghqv1alpha1.WatchVerb},
})
}
Expand Down

0 comments on commit b802426

Please sign in to comment.