Skip to content

Commit 6425054

Browse files
author
Radu M
authored
Merge pull request #20 from Aisuko/doc/context
Fix the README.md issue
2 parents 6b0b3ff + 009b196 commit 6425054

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ jobs:
1818
run: |
1919
kubectl cluster-info
2020
kubectl get pods -n kube-system
21+
echo "current-context:" $(kubectl config current-context)
22+
echo "environment-kubeconfig:" ${KUBECONFIG}
2123
```
2224

23-
> Note: KUBECONFIG is automatically merged after cluster creation, so starting with version 0.6 of Kind, you do not need to manually export the `KUBECONFIG` environment variable. See [this document for a detailed migration guide][kind-kubeconfig]
25+
> Note: KUBECONFIG is automatically merged after cluster creation starting with version 0.6 of Kind. See [this document for a detailed migration guide][kind-kubeconfig]
2426
2527
> Note: GitHub Actions workers come pre-configured with `kubectl`.
2628
@@ -32,7 +34,7 @@ Optional inputs:
3234
- `version`: version of Kind to use (default `"v0.7.0"`)
3335
- `config`: path (relative to the root of the repository) to a kind config file. If omitted, a default 1-node cluster will be created
3436
- `image`: node Docker image to use for booting the cluster.
35-
- `name`: cluster context name (default `"kind"`)
37+
- `name`: cluster context name (default `"kind-kind"`)
3638
- `wait`: wait for control plane node to be ready (default `"300s"`)
3739
- `skipClusterCreation`: if `"true"`, the action will not create a cluster, just acquire the tools
3840

@@ -54,6 +56,8 @@ jobs:
5456
run: |
5557
kubectl cluster-info
5658
kubectl get pods -n kube-system
59+
echo "current-context:" $(kubectl config current-context)
60+
echo "environment-kubeconfig:" ${KUBECONFIG}
5761
```
5862

5963
[kind-kubeconfig]: https://github.com/kubernetes-sigs/kind/issues/1060

0 commit comments

Comments
 (0)