Merge pull request #950 from kelseyhightower/awk
remove unnecessary use of grep
This commit is contained in:
@@ -67,7 +67,7 @@ context.
|
|||||||
First get your current context:
|
First get your current context:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ export CONTEXT=$(kubectl config view | grep current-context | awk '{print $2}')
|
$ export CONTEXT=$(kubectl config view | awk '/current-context/ {print $2}')
|
||||||
```
|
```
|
||||||
|
|
||||||
Then update the default namespace:
|
Then update the default namespace:
|
||||||
|
|||||||
Reference in New Issue
Block a user