Skip to content

Adds a reflector for caching mirrord policies (changes mirrord operat…or setup to have the operator with watch permission for policies). #3303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mirrord/operator/src/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -589,15 +589,15 @@ impl OperatorClusterRole {
verbs: vec!["create".to_owned()],
..Default::default()
},
// Allow the operator to list+get mirrord policies.
// Allow the operator to list+get+watch mirrord policies.
PolicyRule {
// Both namespaced and cluster-wide policies live in the same API group.
api_groups: Some(vec![MirrordPolicy::group(&()).into_owned()]),
resources: Some(vec![
MirrordPolicy::plural(&()).into_owned(),
MirrordClusterPolicy::plural(&()).into_owned(),
]),
verbs: vec!["list".to_owned(), "get".to_owned()],
verbs: vec!["list".to_owned(), "get".to_owned(), "watch".to_owned()],
..Default::default()
},
// Allow for patching replicas and environment variables.
Expand Down
Loading