Skip to content

Commit

Permalink
Remove shell Markdown syntax
Browse files Browse the repository at this point in the history
I've removed the shell syntax from the Windows example and have changed
the description to be the same as the one used in
[jsonpath](https://kubernetes.io/docs/reference/kubectl/jsonpath/)
document to be more consistent. The jsonpath example uses cmd syntax,
though it is note inside a note shortcode, therefore I've opted out of
using any syntax as it seems to break rendering inside the shortcode.

Signed-off-by: Mariyan Dimitrov <[email protected]>
  • Loading branch information
merkata committed Jan 28, 2020
1 parent 0f121d4 commit efa16ad
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,9 @@ the corresponding `PersistentVolume` is not be deleted. Instead, it is moved to
where `<your-pv-name>` is the name of your chosen PersistentVolume.

{{< note >}}
If you are running `kubectl` on Windows, you'd need to use double quotes on the
command line and thus escape the inner double quotes like this:
On Windows, you must _double_ quote any JSONPath template that contains spaces (not single quote as shown above for bash). This in turn means that you must use a single quote or escaped double quote around any literals in the template. For example:

```shell
kubectl patch pv <your-pv-name> -p "{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Retain\"}}"
```
C:\> kubectl patch pv <your-pv-name> -p "{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Retain\"}}"
{{< /note >}}

1. Verify that your chosen PersistentVolume has the right policy:
Expand Down

0 comments on commit efa16ad

Please sign in to comment.