Skip to content

Commit 72a86cd

Browse files
fix role for the metric services (#2090)
* add changelog * fix role which is required for the services * Add deployments in the mock data for roles unit tests
1 parent bfabaf5 commit 72a86cd

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
### Bug Fixes
1919

2020
- OLM internal manager is not returning errors in the initialization. ([#1976](https://github.com/operator-framework/operator-sdk/pull/1976))
21+
- Added missing default role permission for `deployments`, which is required to create the metrics service for the operator. ([#2090](https://github.com/operator-framework/operator-sdk/pull/2090))
2122

2223
## v0.11.0
2324

internal/scaffold/role.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ rules:
238238
- apps
239239
resources:
240240
- replicasets
241+
- deployments
241242
verbs:
242243
- get
243244
`

internal/scaffold/role_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ rules:
126126
- apps
127127
resources:
128128
- replicasets
129+
- deployments
129130
verbs:
130131
- get
131132
`
@@ -182,6 +183,7 @@ rules:
182183
- apps
183184
resources:
184185
- replicasets
186+
- deployments
185187
verbs:
186188
- get
187189
`
@@ -231,6 +233,7 @@ rules:
231233
- apps
232234
resources:
233235
- replicasets
236+
- deployments
234237
verbs:
235238
- get
236239
`

0 commit comments

Comments
 (0)