Skip to content

Commit

Permalink
Add additional RBAC permissions to CoreDNS ClusterRole related to DNS…
Browse files Browse the repository at this point in the history
…NameResolver CR
  • Loading branch information
arkadeepsen committed Jul 12, 2024
1 parent 8053f58 commit 05c8a76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/operator/controller/controller_cluster_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ func addDNSNameResolverPolicyRule(cr *rbacv1.ClusterRole) {
cr.Rules = append(cr.Rules, rbacv1.PolicyRule{
APIGroups: []string{"network.openshift.io"},
Resources: []string{"dnsnameresolvers"},
Verbs: []string{"list", "watch"},
Verbs: []string{"get", "list", "watch"},
})
cr.Rules = append(cr.Rules, rbacv1.PolicyRule{
APIGroups: []string{"network.openshift.io"},
Resources: []string{"dnsnameresolvers/status"},
Verbs: []string{"update"},
Verbs: []string{"get", "update", "patch"},
})
}

Expand Down

0 comments on commit 05c8a76

Please sign in to comment.