[zh]: Add package main to client-go example
The package main is missing from the example. Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
This commit is contained in:
parent
d3f537f2c6
commit
ee17ef17a5
|
|
@ -277,6 +277,8 @@ Go 客户端可以使用与 kubectl 命令行工具相同的
|
||||||
[例子](https://git.k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go):
|
[例子](https://git.k8s.io/client-go/examples/out-of-cluster-client-configuration/main.go):
|
||||||
|
|
||||||
```golang
|
```golang
|
||||||
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"k8s.io/client-go/1.4/kubernetes"
|
"k8s.io/client-go/1.4/kubernetes"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue