Skip to content

Commit

Permalink
Fix recommended home directory link
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsher31 committed Jul 13, 2021
1 parent 1a713ea commit 84b6c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ In order to send the request successfully, kubectl needs to be able to authentic

- if a `--kubeconfig` flag is provided, use that.
- if the `$KUBECONFIG` environment variable is defined, use that.
- otherwise look in a [predictable home directory](https://github.com/kubernetes/client-go/blob/master/tools/clientcmd/loader.go#L52) like `~/.kube`, and use the first file found.
- otherwise look in the [recommended home directory](https://github.com/kubernetes/client-go/blob/release-1.21/tools/clientcmd/loader.go#L43) like `~/.kube`, and use the first file found.

After parsing the file, it then determines the current context to use, the current cluster to point to, and any auth information associated with the current user. If the user provided flag-specific values (such as `--username`) these take precedence and will override those specified in kubeconfig. Once it has this information, kubectl populates the client's configuration so that it is able to decorate the HTTP request appropriately:

Expand Down

0 comments on commit 84b6c2e

Please sign in to comment.