Skip to content

Commit

Permalink
Add cronjobs and statefulsets(/scale) to operator role setup. (metalb…
Browse files Browse the repository at this point in the history
…ear-co#2531)

* Add cronjob and statefulsets(/scale) to OperatorRole.

* changelog
  • Loading branch information
meowjesty authored Jun 18, 2024
1 parent 52783b4 commit 1323ae2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add cronjobs and statefulsets(/scale) to operator role setup.
6 changes: 5 additions & 1 deletion mirrord/operator/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,12 @@ impl OperatorRole {
"pods/ephemeralcontainers".to_owned(),
"deployments".to_owned(),
"deployments/scale".to_owned(),
"jobs".to_owned(),
"rollouts".to_owned(),
"rollouts/scale".to_owned(),
"jobs".to_owned(),
"cronjobs".to_owned(),
"statefulsets".to_owned(),
"statefulsets/scale".to_owned(),
]),
verbs: vec!["get".to_owned(), "list".to_owned(), "watch".to_owned()],
..Default::default()
Expand All @@ -417,6 +420,7 @@ impl OperatorRole {
resources: Some(vec![
"deployments/scale".to_owned(),
"rollouts/scale".to_owned(),
"statefulsets/scale".to_owned(),
]),
verbs: vec!["patch".to_owned()],
..Default::default()
Expand Down

0 comments on commit 1323ae2

Please sign in to comment.