Skip to content

Commit 5915b95

Browse files
authored
Merge pull request #34127 from Sea-n/tasks-multiple-cluster
Add quote for shell variable in configure-access-multiple-clusters.md
2 parents d2f96a9 + 34127ab commit 5915b95

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

content/en/docs/tasks/access-application-cluster/configure-access-multiple-clusters.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ It does not mean that there is a file named `kubeconfig`.
2222

2323

2424
{{< warning >}}
25-
Only use kubeconfig files from trusted sources. Using a specially-crafted kubeconfig file could result in malicious code execution or file exposure.
25+
Only use kubeconfig files from trusted sources. Using a specially-crafted kubeconfig
26+
file could result in malicious code execution or file exposure.
2627
If you must use an untrusted kubeconfig file, inspect it carefully first, much as you would a shell script.
2728
{{< /warning>}}
2829

@@ -50,7 +51,7 @@ to the scratch cluster requires authentication by username and password.
5051
Create a directory named `config-exercise`. In your
5152
`config-exercise` directory, create a file named `config-demo` with this content:
5253

53-
```shell
54+
```yaml
5455
apiVersion: v1
5556
kind: Config
5657
preferences: {}
@@ -271,7 +272,7 @@ For example:
271272
### Linux
272273

273274
```shell
274-
export KUBECONFIG_SAVED=$KUBECONFIG
275+
export KUBECONFIG_SAVED="$KUBECONFIG"
275276
```
276277

277278
### Windows PowerShell
@@ -290,7 +291,7 @@ Temporarily append two paths to your `KUBECONFIG` environment variable. For exam
290291
### Linux
291292

292293
```shell
293-
export KUBECONFIG=$KUBECONFIG:config-demo:config-demo-2
294+
export KUBECONFIG="${KUBECONFIG}:config-demo:config-demo-2"
294295
```
295296

296297
### Windows PowerShell
@@ -356,7 +357,7 @@ For example:
356357
### Linux
357358

358359
```shell
359-
export KUBECONFIG=$KUBECONFIG:$HOME/.kube/config
360+
export KUBECONFIG="${KUBECONFIG}:${HOME}/.kube/config"
360361
```
361362

362363
### Windows Powershell
@@ -379,7 +380,7 @@ Return your `KUBECONFIG` environment variable to its original value. For example
379380
### Linux
380381

381382
```shell
382-
export KUBECONFIG=$KUBECONFIG_SAVED
383+
export KUBECONFIG="$KUBECONFIG_SAVED"
383384
```
384385

385386
### Windows PowerShell

0 commit comments

Comments
 (0)