Skip to content

Commit

Permalink
Move mtls flags above examples
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCrawfis committed Dec 12, 2020
1 parent 8cf559e commit e94125a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
26 changes: 13 additions & 13 deletions daprdocs/content/en/reference/cli/dapr-mtls/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 >}})
- [`dapr mtls export`]({{< ref dapr-mtls-export.md >}})

## Examples

### Check if mTLS is enabled
```bash
dapr mtls -k
```
12 changes: 6 additions & 6 deletions daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-expiry.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
14 changes: 7 additions & 7 deletions daprdocs/content/en/reference/cli/dapr-mtls/dapr-mtls-export.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

0 comments on commit e94125a

Please sign in to comment.