Skip to content

Commit 1c424fd

Browse files
committed
Update some readme.md files in client-go
1 parent 8a2f8e6 commit 1c424fd

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

staging/src/k8s.io/client-go/INSTALL.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ library install, don't mind getting HEAD (which may be less stable than a
77
particular release), then simply:
88

99
```sh
10-
$ go get k8s.io/client-go@master
10+
go get k8s.io/client-go@master
1111
```
1212

1313
This will record a dependency on `k8s.io/client-go` in your go module.
@@ -24,12 +24,12 @@ If you are using a version of go prior to 1.11, or do not wish to use
2424
go modules, you can download `k8s.io/client-go` to your `$GOPATH` instead:
2525

2626
```sh
27-
$ go get -u k8s.io/client-go/...
28-
$ go get -u k8s.io/apimachinery/...
29-
$ cd $GOPATH/src/k8s.io/client-go
30-
$ git checkout v11.0.0
31-
$ cd $GOPATH/src/k8s.io/apimachinery
32-
$ git checkout kubernetes-1.14.0
27+
go get -u k8s.io/client-go/...
28+
go get -u k8s.io/apimachinery/...
29+
cd $GOPATH/src/k8s.io/client-go
30+
git checkout v11.0.0
31+
cd $GOPATH/src/k8s.io/apimachinery
32+
git checkout kubernetes-1.14.0
3333
```
3434

3535
This downloads a version of `k8s.io/client-go` prior to v1.12.0,

staging/src/k8s.io/client-go/examples/in-cluster-client-configuration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ kubectl create clusterrolebinding default-view --clusterrole=view --serviceaccou
3737

3838
Then, run the image in a Pod with a single instance Deployment:
3939

40-
$ kubectl run --rm -i demo --image=in-cluster --image-pull-policy=Never
40+
kubectl run --rm -i demo --image=in-cluster --image-pull-policy=Never
4141

4242
There are 4 pods in the cluster
4343
There are 4 pods in the cluster

staging/src/k8s.io/client-go/examples/leader-election/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ Run the following three commands in separate terminals. Each terminal needs a un
88

99
```bash
1010
# first terminal
11-
$ go run *.go -kubeconfig=/my/config -logtostderr=true -id=1
11+
go run *.go -kubeconfig=/my/config -logtostderr=true -id=1
1212

1313
# second terminal
14-
$ go run *.go -kubeconfig=/my/config -logtostderr=true -id=2
14+
go run *.go -kubeconfig=/my/config -logtostderr=true -id=2
1515

1616
# third terminal
17-
$ go run *.go -kubeconfig=/my/config -logtostderr=true -id=3
17+
go run *.go -kubeconfig=/my/config -logtostderr=true -id=3
1818
```
1919
> You can ignore the `-kubeconfig` flag if you are running these commands in the Kubernetes cluster.
2020
21-
Now kill the existing leader. You will see from the terminal outputs that one of the remaining two processes will be elected as the new leader.
21+
Now kill the existing leader. You will see from the terminal outputs that one of the remaining two processes will be elected as the new leader.

staging/src/k8s.io/client-go/examples/out-of-cluster-client-configuration/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Run this application with:
2222
Running this application will use the kubeconfig file and then authenticate to the
2323
cluster, and print the number of pods in the cluster every 10 seconds:
2424

25-
$ ./app
25+
./app
2626
There are 3 pods in the cluster
2727
There are 3 pods in the cluster
2828
There are 3 pods in the cluster

0 commit comments

Comments
 (0)