-
Notifications
You must be signed in to change notification settings - Fork 703
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Proposal] : Litmusctl Probe CRUD Commands (#4387)
* Adds litmusctl probe proposal Signed-off-by: nagesh bansal <[email protected]> * Adds implemantaions Signed-off-by: nagesh bansal <[email protected]> --------- Signed-off-by: nagesh bansal <[email protected]> Co-authored-by: Saranya Jena <[email protected]>
- Loading branch information
1 parent
7e53059
commit 77124b3
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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,<br>specifying details such as type, name, timeout, <br>interval, retry, and polling interval. | | ||
| `delete chaos-probe` | The command allows developers to delete a probe<br> by providing its name. | | ||
| `list chaos-probe` | It displays a list of existing probes <br> including their names, IDs, types, and references. | | ||
| `describe chaos-probe` | To view detailed information about a specific probe,<br> 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 | ||
|
||
|
||
|