From a1f5566490874c783bf5411c2cf7d8014a7d29fa Mon Sep 17 00:00:00 2001 From: Razz4780 Date: Thu, 30 Jan 2025 14:47:09 +0100 Subject: [PATCH] Fix operator setup --- mirrord/operator/src/setup.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mirrord/operator/src/setup.rs b/mirrord/operator/src/setup.rs index 80c09c0b36c..c345a43a02b 100644 --- a/mirrord/operator/src/setup.rs +++ b/mirrord/operator/src/setup.rs @@ -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() @@ -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() },