Skip to content

Commit

Permalink
Add missing permissions needed by operator for copy and scaledown (#2236
Browse files Browse the repository at this point in the history
)
  • Loading branch information
aviramha authored Feb 13, 2024
1 parent 0ca5631 commit 1a59b71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/+operator-role-issue.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add missing permissions needed by operator for copy and scaledown
7 changes: 7 additions & 0 deletions mirrord/operator/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,19 @@ impl OperatorRole {
"pods/log".to_owned(),
"pods/ephemeralcontainers".to_owned(),
"deployments".to_owned(),
"deployments/scale".to_owned(),
"jobs".to_owned(),
"rollouts".to_owned(),
]),
verbs: vec!["get".to_owned(), "list".to_owned(), "watch".to_owned()],
..Default::default()
},
PolicyRule {
api_groups: Some(vec!["apps".to_owned()]),
resources: Some(vec!["deployments/scale".to_owned()]),
verbs: vec!["patch".to_owned()],
..Default::default()
},
PolicyRule {
api_groups: Some(vec!["batch".to_owned()]),
resources: Some(vec!["jobs".to_owned()]),
Expand Down

0 comments on commit 1a59b71

Please sign in to comment.