Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update usage-interactive-mode.md #163

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions website/docs/litmusctl/usage-interactive-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ Fields to be filled in <br />
<td>Agent Description:</td>
<td>Fill in details about the agent</td>
</tr>
<tr>
<td>Skip SSL verification</td>
<td>Choose whether agent will skip SSL/TLS verification</td>
</tr>
<tr>
<td>Node Selector:</td>
<td>To deploy the agent on a particular node based on the node selector labels</td>
Expand All @@ -140,6 +144,8 @@ Agent Name: New-Agent

Agent Description: This is a new agent

Do you want Agent to skip SSL/TLS check (Y/N) (Default: N): n

Do you want NodeSelector to be added in the agent deployments (Y/N) (Default: N): N

Platform List:
Expand All @@ -164,6 +170,7 @@ Enter service account [Default: litmus]:
📌 Summary
Agent Name: New-Agent
Agent Description: This is a new agent
Agent SSL/TLS Skip: false
Platform Name: Others
Namespace: litmus
Service Account: litmus (new)
Expand Down Expand Up @@ -276,6 +283,39 @@ AGENTID AGENTNAME STATUS
13dsf3d1-5324-54af-4g23-5331g5v2364f agent-2 INACTIVE
```

## Flag details

<table>
<th>Flag</th>
<th>Short Flag</th>
<th>Type</th>
<th>Description</th>
<tr>
<td>--cacert</td>
<td></td>
<td>String</td>
<td>custom ca certificate used by litmusctl for communicating with portal</td>
</tr>
<tr>
<td>--config</td>
<td></td>
<td>String</td>
<td>config file (default is $HOME/.litmusctl)</td>
</tr>
<tr>
<td>--skipSSL</td>
<td></td>
<td>Boolean</td>
<td>litmusctl will skip ssl/tls verification while communicating with portal</td>
</tr>
<tr>
<td>--help</td>
<td>-h</td>
<td></td>
<td>help for litmusctl</td>
</tr>
</table>

For more information related to flags, Use `litmusctl --help`.

## Learn More
Expand Down
12 changes: 10 additions & 2 deletions website/docs/litmusctl/usage-non-interactive-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sidebar_label: Using non interactive mode
# Usage: Litmusctl v0.3.0
> Notes:
> * For litmusctl v0.3.0 or latest
> * Compatible with Litmus 2.0.0 or latest
> * Compatible with Litmus 2.0.0-Beta9 or latest

### litmusctl Syntax
`litmusctl` has a syntax to use as follows:
Expand Down Expand Up @@ -49,7 +49,7 @@ litmusctl config set-account --endpoint="" --username="" --password=""
litmusctl create agent --agent-name="" --non-interactive
```

Or,
### Or,

* To create an agent with an existing project
> Note: To get `project-id`. Apply `litmusctl get projects`
Expand All @@ -64,6 +64,7 @@ To verify, if the connection process was successful you can view the list of con

### Flags for `create agent` command
<table>
<tr>
<th>Flag</th>
<th>Short Flag</th>
<th>Type</th>
Expand All @@ -80,6 +81,12 @@ To verify, if the connection process was successful you can view the list of con
<td>String</td>
<td>Set the cluster-type to external for external agents | Supported=external/internal (default "external")</td>
</tr>
<tr>
<td>--skip-agent-ssl</td>
<td></td>
<td>Boolean</td>
<td>Set whether agent will skip ssl/tls check (can be used for self-signed certs, if cert is not provided in portal) (default false)</td>
</tr>
<tr>
<td>--cluster-type</td>
<td></td>
Expand Down Expand Up @@ -224,6 +231,7 @@ AGENTID AGENTNAME STATUS
13dsf3d1-5324-54af-4g23-5331g5v2364f agent-2 INACTIVE
```


For more information related to flags, Use `litmusctl --help`.

---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ Fields to be filled in <br />
<td>Agent Description:</td>
<td>Fill in details about the agent</td>
</tr>
<tr>
<td>Skip SSL verification</td>
<td>Choose whether agent will skip SSL/TLS verification</td>
</tr>
<tr>
<td>Node Selector:</td>
<td>To deploy the agent on a particular node based on the node selector labels</td>
Expand All @@ -140,6 +144,8 @@ Agent Name: New-Agent

Agent Description: This is a new agent

Do you want Agent to skip SSL/TLS check (Y/N) (Default: N): n

Do you want NodeSelector to be added in the agent deployments (Y/N) (Default: N): N

Platform List:
Expand All @@ -164,6 +170,7 @@ Enter service account [Default: litmus]:
📌 Summary
Agent Name: New-Agent
Agent Description: This is a new agent
Agent SSL/TLS Skip: false
Platform Name: Others
Namespace: litmus
Service Account: litmus (new)
Expand Down Expand Up @@ -276,6 +283,39 @@ AGENTID AGENTNAME STATUS
13dsf3d1-5324-54af-4g23-5331g5v2364f agent-2 INACTIVE
```

## Flag details

<table>
<th>Flag</th>
<th>Short Flag</th>
<th>Type</th>
<th>Description</th>
<tr>
<td>--cacert</td>
<td></td>
<td>String</td>
<td>custom ca certificate used by litmusctl for communicating with portal</td>
</tr>
<tr>
<td>--config</td>
<td></td>
<td>String</td>
<td>config file (default is $HOME/.litmusctl)</td>
</tr>
<tr>
<td>--skipSSL</td>
<td></td>
<td>Boolean</td>
<td>litmusctl will skip ssl/tls verification while communicating with portal</td>
</tr>
<tr>
<td>--help</td>
<td>-h</td>
<td></td>
<td>help for litmusctl</td>
</tr>
</table>

For more information related to flags, Use `litmusctl --help`.

## Learn More
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sidebar_label: Using non interactive mode
# Usage: Litmusctl v0.3.0
> Notes:
> * For litmusctl v0.3.0 or latest
> * Compatible with Litmus 2.0.0 or latest
> * Compatible with Litmus 2.0.0-Beta9 or latest

### litmusctl Syntax
`litmusctl` has a syntax to use as follows:
Expand Down Expand Up @@ -49,7 +49,7 @@ litmusctl config set-account --endpoint="" --username="" --password=""
litmusctl create agent --agent-name="" --non-interactive
```

Or,
### Or,

* To create an agent with an existing project
> Note: To get `project-id`. Apply `litmusctl get projects`
Expand All @@ -64,6 +64,7 @@ To verify, if the connection process was successful you can view the list of con

### Flags for `create agent` command
<table>
<tr>
<th>Flag</th>
<th>Short Flag</th>
<th>Type</th>
Expand All @@ -80,6 +81,12 @@ To verify, if the connection process was successful you can view the list of con
<td>String</td>
<td>Set the cluster-type to external for external agents | Supported=external/internal (default "external")</td>
</tr>
<tr>
<td>--skip-agent-ssl</td>
<td></td>
<td>Boolean</td>
<td>Set whether agent will skip ssl/tls check (can be used for self-signed certs, if cert is not provided in portal) (default false)</td>
</tr>
<tr>
<td>--cluster-type</td>
<td></td>
Expand Down Expand Up @@ -224,6 +231,7 @@ AGENTID AGENTNAME STATUS
13dsf3d1-5324-54af-4g23-5331g5v2364f agent-2 INACTIVE
```


For more information related to flags, Use `litmusctl --help`.

---
Expand Down