diff --git a/Cargo.lock b/Cargo.lock index aa5d209f6a2..faa47be7438 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3860,7 +3860,7 @@ dependencies = [ "rand", "regex", "reqwest 0.12.4", - "rustls 0.23.8", + "rustls 0.23.10", "semver 1.0.23", "serde", "serde_json", @@ -3910,7 +3910,7 @@ dependencies = [ "rawsocket", "rcgen", "regex", - "rustls 0.23.8", + "rustls 0.23.10", "semver 1.0.23", "serde", "serde_json", @@ -6536,7 +6536,7 @@ dependencies = [ "regex", "reqwest 0.12.4", "rstest", - "rustls 0.23.8", + "rustls 0.23.10", "serde", "serde_json", "tempfile", diff --git a/changelog.d/+404-543-add-operator-role-cronjob-statefulsets.added.md b/changelog.d/+404-543-add-operator-role-cronjob-statefulsets.added.md new file mode 100644 index 00000000000..b1eea76ac4c --- /dev/null +++ b/changelog.d/+404-543-add-operator-role-cronjob-statefulsets.added.md @@ -0,0 +1 @@ +Add cronjobs and statefulsets(/scale) to operator role setup. \ No newline at end of file diff --git a/mirrord/operator/src/setup.rs b/mirrord/operator/src/setup.rs index 1fbed12d840..92da26f4710 100644 --- a/mirrord/operator/src/setup.rs +++ b/mirrord/operator/src/setup.rs @@ -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() @@ -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()