Skip to content

Commit

Permalink
include list,watch/namespace permission
Browse files Browse the repository at this point in the history
  • Loading branch information
gambtho committed Aug 29, 2023
1 parent b86f38a commit 04c3e5e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion pkg/manifests/fixtures/nginx/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"endpoints",
"nodes",
"pods",
"secrets"
"secrets",
"namespaces"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion pkg/manifests/fixtures/nginx/internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@
"endpoints",
"nodes",
"pods",
"secrets"
"secrets",
"namespaces"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion pkg/manifests/fixtures/nginx/kube-system.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
"endpoints",
"nodes",
"pods",
"secrets"
"secrets",
"namespaces"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion pkg/manifests/fixtures/nginx/no-ownership.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"endpoints",
"nodes",
"pods",
"secrets"
"secrets",
"namespaces"
]
},
{
Expand Down
3 changes: 2 additions & 1 deletion pkg/manifests/fixtures/nginx/optional-features-disabled.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@
"endpoints",
"nodes",
"pods",
"secrets"
"secrets",
"namespaces"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/manifests/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func newNginxIngressControllerClusterRole(conf *config.Config, ingressConfig *Ng
// https://github.com/kubernetes/ingress-nginx/blob/ab99e23bba4404ab5fd036e15fb178014cca1a2f/charts/ingress-nginx/templates/clusterrole.yaml#L7
{
APIGroups: []string{""},
Resources: []string{"configmaps", "endpoints", "nodes", "pods", "secrets"},
Resources: []string{"configmaps", "endpoints", "nodes", "pods", "secrets", "namespaces"},
Verbs: []string{"list", "watch"},
},
{
Expand Down

0 comments on commit 04c3e5e

Please sign in to comment.