From e94125a1586935f640b21c9dd21cb1537b5420be Mon Sep 17 00:00:00 2001 From: Aaron Crawfis Date: Fri, 11 Dec 2020 18:21:06 -0800 Subject: [PATCH] Move mtls flags above examples --- .../en/reference/cli/dapr-mtls/_index.md | 26 +++++++++---------- .../cli/dapr-mtls/dapr-mtls-expiry.md | 12 ++++----- .../cli/dapr-mtls/dapr-mtls-export.md | 14 +++++----- 3 files changed, 26 insertions(+), 26 deletions(-) diff --git a/daprdocs/content/en/reference/cli/dapr-mtls/_index.md b/daprdocs/content/en/reference/cli/dapr-mtls/_index.md index bd46e2bb3..4fa7eadea 100644 --- a/daprdocs/content/en/reference/cli/dapr-mtls/_index.md +++ b/daprdocs/content/en/reference/cli/dapr-mtls/_index.md @@ -20,12 +20,12 @@ dapr mtls [flags] dapr mtls [command] ``` -## Examples +## Flags -### Check if mTLS is enabled -```bash -dapr mtls -k -``` +| Name | Environment Variable | Default | Description +| --- | --- | --- | --- | +| `--help`, `-h` | | | Print this help message | +| `--kubernetes`, `-k` | | `false` | Check if mTLS is enabled in a Kubernetes cluster | ## 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 ``` -## 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 You can learn more about each sub command from the links below. - [`dapr mtls expiry`]({{< ref dapr-mtls-expiry.md >}}) - - [`dapr mtls export`]({{< ref dapr-mtls-export.md >}}) \ No newline at end of file + - [`dapr mtls export`]({{< ref dapr-mtls-export.md >}}) + +## Examples + +### Check if mTLS is enabled +```bash +dapr mtls -k +``` \ No newline at end of file diff --git a/daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-expiry.md b/daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-expiry.md index f02022d72..c3d9be409 100644 --- a/daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-expiry.md +++ b/daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-expiry.md @@ -20,15 +20,15 @@ Checks the expiry of the root certificate dapr mtls expiry [flags] ``` +## Flags + +| Name | Environment Variable | Default | Description +| --- | --- | --- | --- | +| `--help`, `-h` | | | help for expiry | + ## Examples ### Check expiry of Kubernetes certs ```bash dapr mtls expiry ``` - -## Flags - -| Name | Environment Variable | Default | Description -| --- | --- | --- | --- | -| `--help`, `-h` | | | help for expiry | \ No newline at end of file diff --git a/daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-export.md b/daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-export.md index 46a23bddb..3e7f2e20d 100644 --- a/daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-export.md +++ b/daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-export.md @@ -20,16 +20,16 @@ Export the root CA, issuer cert and key from Kubernetes to local files dapr mtls export [flags] ``` -## Examples - -### Check expiry of Kubernetes certs -```bash -dapr mtls export -o ./certs -``` - ## Flags | Name | Environment Variable | Default | Description | --- | --- | --- | --- | | `--help`, `-h` | | | help for export | | `--out`, `-o` | | current directory | The output directory path to save the certs | + +## Examples + +### Check expiry of Kubernetes certs +```bash +dapr mtls export -o ./certs +```