Skip to content

Commit

Permalink
Fix operator setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Razz4780 committed Jan 30, 2025
1 parent 42ecbd3 commit a1f5566
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mirrord/operator/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ impl OperatorClusterRole {
"statefulsets".to_owned(),
"statefulsets/scale".to_owned(),
"services".to_owned(),
"replicasets".to_owned(),
]),
verbs: vec!["get".to_owned(), "list".to_owned(), "watch".to_owned()],
..Default::default()
Expand Down Expand Up @@ -591,7 +592,11 @@ impl OperatorClusterRole {
// Allow for patching replicas and environment variables.
PolicyRule {
api_groups: Some(vec!["apps".to_owned()]),
resources: Some(vec!["deployments".to_owned(), "statefulsets".to_owned()]),
resources: Some(vec![
"deployments".to_owned(),
"statefulsets".to_owned(),
"replicasets".to_owned(),
]),
verbs: vec!["patch".to_owned()],
..Default::default()
},
Expand Down

0 comments on commit a1f5566

Please sign in to comment.