Skip to content

Conversation

@SarthakJain26
Copy link
Collaborator

Updated logs and commands with new terminology:

litmusctl connect agent -> litmusctl connect chaos-delegate
litmusctl disconnect agent -> litmusctl disconnect chaos-delegate
litmusctl get agents -> litmusctl get chaos-delegates
litmusctl create workflow -> litmusctl create chaos-scenario
litmusctl delete workflow -> litmusctl delete chaos-scenario
litmusctl describe workflow -> litmusctl describe chaos-scenario
litmusctl get workflows -> litmusctl get chaos-scenarios
litmusctl get workflowruns -> litmusctl get chaos-scenario-runs 
litmusctl upgrade agent -> litmusctl upgrade chaos-delegate

Signed-off-by: Sarthak Jain sarthak.jain@harness.io

Signed-off-by: Sarthak Jain <sarthak.jain@harness.io>
Usage.md Outdated
### Installation modes
Litmusctl can install an agent in two different modes.
* cluster mode: With this mode, the agent can run the chaos in any namespace. It installs appropriate cluster roles and cluster role bindings to achieve this mode. It can be enabled by passing a flag `--installation-mode=cluster`
Litmusctl can install an Chaos Delegate in two different modes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an->a

Usage.md Outdated
```shell
litmusctl connect agent --agent-name="" --project-id="" --non-interactive
litmusctl connect chaos-delegate --chaos-delegate-name="" --project-id="" --non-interactive
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be --chaos-delegate-name -> --name ? 🤔

Usage.md Outdated


* To list the created workflows within a project, issue the following command.
* To list the created scenarios within a project, issue the following command.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scenarios -> Chaos Scenarios

Usage.md Outdated


* To delete a particular chaos workflow, issue the following command.
* To delete a particular chaos sceanrio, issue the following command.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sceanrio -> scenario

Usage.md Outdated

```
🚀 ChaosWorkflow successfully deleted.
🚀 ChaosScenario successfully deleted.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a space in between?

* To delete a particular chaos sceanrio, issue the following command.
```shell
litmusctl delete workflow <workflow-id> --project-id=""
litmusctl delete delete chaos-scenario <chaos-scenario-id> --project-id=""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you remove one delete?


```
🚀 ChaosWorkflow successfully deleted.
🚀 ChaosScenario successfully deleted.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a space here

Examples:
#describe a ChaosWorkflow
litmusctl describe workflow d861b650-1549-4574-b2ba-ab754058dd04 --project-id="d861b650-1549-4574-b2ba-ab754058dd04"
#describe a ChaosScenario
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add space

if ok {
if podExists(podExistsParams{namespace, label}, kubeconfig) {
utils.Red.Println("\n🚫 There is an agent already present in this namespace. Please enter a different namespace")
utils.Red.Println("\n🚫 There is an Chaos Delegate already present in this namespace. Please enter a different namespace")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an -> a

utils.White_B.Println("💡 Connecting Chaos Delegate to ChaosCenter.")
if p.Status.Phase == "Running" {
utils.White_B.Println("🏃 Agents are running!!")
utils.White_B.Println("🏃 Chaos Delegates are running!!")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chaos Delegate is running

Signed-off-by: Sarthak Jain <sarthak.jain@harness.io>
@imrajdas imrajdas merged commit 35afa81 into master Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants