From 643a1b0511d9d569f1fd03e3a89e76d2fb035067 Mon Sep 17 00:00:00 2001 From: Razz4780 Date: Fri, 31 Jan 2025 10:14:03 +0100 Subject: [PATCH] Updated CONTRIBUTING guide --- CONTRIBUTING.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0583782b4b1..8d9d7fdb3f4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -570,3 +570,13 @@ cargo-zigbuild clippy --lib --bins --all-features --target x86_64-unknown-linux- If it doesn't work, try updating `cargo-zigbuild` (`cargo install cargo-zigbuild` or maybe `cargo install cargo-zigbuild --force`) or via `homebrew` if it was installed via homebrew. + +# Adding new target types + +Adding a new target type for mirrord requires changes in: + +1. `mirrord-config` crate - parsing the target from the user config; +2. `mirrord-cli` crate - verifying the user config; +3. `mirrord-kube` crate - resolving the target to the Kubernetes resource; +4. `mirrord-operator` crate - defining operator's `ClusterRole`; +5. `test` crate - testing `mirrord ls` command