@@ -22,7 +22,8 @@ It does not mean that there is a file named `kubeconfig`.
22
22
23
23
24
24
{{< 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.
26
27
If you must use an untrusted kubeconfig file, inspect it carefully first, much as you would a shell script.
27
28
{{< /warning>}}
28
29
@@ -50,7 +51,7 @@ to the scratch cluster requires authentication by username and password.
50
51
Create a directory named ` config-exercise ` . In your
51
52
` config-exercise ` directory, create a file named ` config-demo ` with this content:
52
53
53
- ``` shell
54
+ ``` yaml
54
55
apiVersion : v1
55
56
kind : Config
56
57
preferences : {}
@@ -271,7 +272,7 @@ For example:
271
272
# ## Linux
272
273
273
274
` ` ` shell
274
- export KUBECONFIG_SAVED=$KUBECONFIG
275
+ export KUBECONFIG_SAVED=" $KUBECONFIG"
275
276
` ` `
276
277
277
278
# ## Windows PowerShell
@@ -290,7 +291,7 @@ Temporarily append two paths to your `KUBECONFIG` environment variable. For exam
290
291
# ## Linux
291
292
292
293
` ` ` shell
293
- export KUBECONFIG=$ KUBECONFIG:config-demo:config-demo-2
294
+ export KUBECONFIG="${ KUBECONFIG} :config-demo:config-demo-2"
294
295
` ` `
295
296
296
297
# ## Windows PowerShell
@@ -356,7 +357,7 @@ For example:
356
357
# ## Linux
357
358
358
359
` ` ` shell
359
- export KUBECONFIG=$ KUBECONFIG:$ HOME/.kube/config
360
+ export KUBECONFIG="${ KUBECONFIG}:${ HOME} /.kube/config"
360
361
` ` `
361
362
362
363
# ## Windows Powershell
@@ -379,7 +380,7 @@ Return your `KUBECONFIG` environment variable to its original value. For example
379
380
# ## Linux
380
381
381
382
` ` ` shell
382
- export KUBECONFIG=$KUBECONFIG_SAVED
383
+ export KUBECONFIG=" $KUBECONFIG_SAVED"
383
384
` ` `
384
385
385
386
# ## Windows PowerShell
0 commit comments