Move mtls flags above examples

This commit is contained in:
Aaron Crawfis 2020-12-11 18:21:06 -08:00
parent 8cf559e826
commit e94125a158
3 changed files with 26 additions and 26 deletions

View File

@ -20,12 +20,12 @@ dapr mtls [flags]
dapr mtls [command] dapr mtls [command]
``` ```
## Examples ## Flags
### Check if mTLS is enabled | Name | Environment Variable | Default | Description
```bash | --- | --- | --- | --- |
dapr mtls -k | `--help`, `-h` | | | Print this help message |
``` | `--kubernetes`, `-k` | | `false` | Check if mTLS is enabled in a Kubernetes cluster |
## Available Commands ## Available Commands
@ -34,16 +34,16 @@ expiry Checks the expiry of the root certificate
export Export the root CA, issuer cert and key from Kubernetes to local files export Export the root CA, issuer cert and key from Kubernetes to local files
``` ```
## Flags
| Name | Environment Variable | Default | Description
| --- | --- | --- | --- |
| `--help`, `-h` | | | Print this help message |
| `--kubernetes`, `-k` | | `false` | Check if mTLS is enabled in a Kubernetes cluster |
## Command Reference ## Command Reference
You can learn more about each sub command from the links below. You can learn more about each sub command from the links below.
- [`dapr mtls expiry`]({{< ref dapr-mtls-expiry.md >}}) - [`dapr mtls expiry`]({{< ref dapr-mtls-expiry.md >}})
- [`dapr mtls export`]({{< ref dapr-mtls-export.md >}}) - [`dapr mtls export`]({{< ref dapr-mtls-export.md >}})
## Examples
### Check if mTLS is enabled
```bash
dapr mtls -k
```

View File

@ -20,15 +20,15 @@ Checks the expiry of the root certificate
dapr mtls expiry [flags] dapr mtls expiry [flags]
``` ```
## Flags
| Name | Environment Variable | Default | Description
| --- | --- | --- | --- |
| `--help`, `-h` | | | help for expiry |
## Examples ## Examples
### Check expiry of Kubernetes certs ### Check expiry of Kubernetes certs
```bash ```bash
dapr mtls expiry dapr mtls expiry
``` ```
## Flags
| Name | Environment Variable | Default | Description
| --- | --- | --- | --- |
| `--help`, `-h` | | | help for expiry |

View File

@ -20,16 +20,16 @@ Export the root CA, issuer cert and key from Kubernetes to local files
dapr mtls export [flags] dapr mtls export [flags]
``` ```
## Examples
### Check expiry of Kubernetes certs
```bash
dapr mtls export -o ./certs
```
## Flags ## Flags
| Name | Environment Variable | Default | Description | Name | Environment Variable | Default | Description
| --- | --- | --- | --- | | --- | --- | --- | --- |
| `--help`, `-h` | | | help for export | | `--help`, `-h` | | | help for export |
| `--out`, `-o` | | current directory | The output directory path to save the certs | | `--out`, `-o` | | current directory | The output directory path to save the certs |
## Examples
### Check expiry of Kubernetes certs
```bash
dapr mtls export -o ./certs
```