Skip to content

Commit

Permalink
add additional role permisson needed during upgrade of nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
gambtho committed Aug 30, 2023
1 parent 0a1783e commit 7c174f4
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkg/manifests/fixtures/nginx/full.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,17 @@
"namespaces"
]
},
{
"verbs": [
"update"
],
"apiGroups": [
""
],
"resources": [
"configmaps"
]
},
{
"verbs": [
"get",
Expand Down
11 changes: 11 additions & 0 deletions pkg/manifests/fixtures/nginx/internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,17 @@
"namespaces"
]
},
{
"verbs": [
"update"
],
"apiGroups": [
""
],
"resources": [
"configmaps"
]
},
{
"verbs": [
"get",
Expand Down
11 changes: 11 additions & 0 deletions pkg/manifests/fixtures/nginx/kube-system.json
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,17 @@
"namespaces"
]
},
{
"verbs": [
"update"
],
"apiGroups": [
""
],
"resources": [
"configmaps"
]
},
{
"verbs": [
"get",
Expand Down
11 changes: 11 additions & 0 deletions pkg/manifests/fixtures/nginx/no-ownership.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,17 @@
"namespaces"
]
},
{
"verbs": [
"update"
],
"apiGroups": [
""
],
"resources": [
"configmaps"
]
},
{
"verbs": [
"get",
Expand Down
11 changes: 11 additions & 0 deletions pkg/manifests/fixtures/nginx/optional-features-disabled.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,17 @@
"namespaces"
]
},
{
"verbs": [
"update"
],
"apiGroups": [
""
],
"resources": [
"configmaps"
]
},
{
"verbs": [
"get",
Expand Down
6 changes: 6 additions & 0 deletions pkg/manifests/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ func newNginxIngressControllerRole(conf *config.Config, ingressConfig *NginxIngr
Resources: []string{"namespaces"},
Verbs: []string{"get"},
},
// temporary permission used for update from 1.3.0->1.8.1
{
APIGroups: []string{""},
Resources: []string{"configmaps"},
Verbs: []string{"update"},
},
{
APIGroups: []string{""},
Resources: []string{"configmaps", "pods", "secrets", "endpoints"},
Expand Down

0 comments on commit 7c174f4

Please sign in to comment.