From 77124b385aab40b7203728daae8f3ef17108b9d8 Mon Sep 17 00:00:00 2001 From: Nageshbansal <76246968+Nageshbansal@users.noreply.github.com> Date: Thu, 15 Feb 2024 14:50:58 +0530 Subject: [PATCH] [Proposal] : Litmusctl Probe CRUD Commands (#4387) * Adds litmusctl probe proposal Signed-off-by: nagesh bansal * Adds implemantaions Signed-off-by: nagesh bansal --------- Signed-off-by: nagesh bansal Co-authored-by: Saranya Jena --- proposals/litmusctl-probe.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 proposals/litmusctl-probe.md diff --git a/proposals/litmusctl-probe.md b/proposals/litmusctl-probe.md new file mode 100644 index 00000000000..62bcb5a9149 --- /dev/null +++ b/proposals/litmusctl-probe.md @@ -0,0 +1,35 @@ +| title | authors | creation-date | last-updated | +|-------|------------------------------------------|---------------|--------------| +| Litmusctl Probe CRUD commmands | [@Nageshbansal](https://github.com/Nageshbansal) | 2024-01-04 | 2024-01-04| + +## Summary + +The Litmusctl probe commands can help developers create/list/delete the probes through the command line ( which can help them while they’re automating), as similar to chaos-center, a developer can save probes by going to the `Resilience Probe` tab. + + +### Goals + +- Create, Describe, Delete, Update commands for Probe in Litmusctl +- Make `save chaos-experiment` command to list and use the Probes + +## Proposal + +### Commands + +| Command | Use Case | +| :--- | :--- | +| `save chaos-probe` | The command allows to create a new probe,
specifying details such as type, name, timeout,
interval, retry, and polling interval. | +| `delete chaos-probe` | The command allows developers to delete a probe
by providing its name. | +| `list chaos-probe` | It displays a list of existing probes
including their names, IDs, types, and references. | +| `describe chaos-probe` | To view detailed information about a specific probe,
providing its ID.| + +### Implementation Details + +The proposal suggests leveraging chaos-center's Probe GraphQL APIs to implement Litmusctl probe commands. Detailed information about probe properties, such as timeout, interval, retry, polling interval, URL, and method, will be captured during creation and displayed during listing and describing. + +#### save chaos-probe command +- A promptUI can be good choice to take user inputs for defining the probe +- In case of Probes which requires too many inputs, user can just pass the yaml file having the probe configuration + + +