mirror of
https://github.com/imjasonh/client-go2
synced 2026-07-20 04:48:31 +00:00
update README
This commit is contained in:
parent
da349520ce
commit
8736289eac
1 changed files with 23 additions and 18 deletions
41
README.md
41
README.md
|
|
@ -2,28 +2,33 @@
|
|||
|
||||
This is an experimental type-parameter-aware client that wraps [`k8s.io/client-go/dynamic`](https://pkg.go.dev/k8s.io/client-go/dynamic) _(...for now)_.
|
||||
|
||||
Until Go 1.18 is released, use [`gotip`](https://pkg.go.dev/golang.org/dl/gotip).
|
||||
Until Go 1.18 is released, use [`gotip`](https://pkg.go.dev/golang.org/dl/gotip), or the recently released [Go 1.18 beta](https://go.dev/blog/go1.18beta1).
|
||||
|
||||
Assuming you've got a working kubeconfig (does `kubectl get pods` work?), you can run this code:
|
||||
|
||||
```
|
||||
$ gotip run ./
|
||||
2021/09/09 12:26:06 PODS
|
||||
2021/09/09 12:26:06 - coredns-558bd4d5db-hjs27
|
||||
2021/09/09 12:26:06 - coredns-558bd4d5db-vhrtd
|
||||
2021/09/09 12:26:06 - etcd-kind-control-plane
|
||||
2021/09/09 12:26:06 - kindnet-c977m
|
||||
2021/09/09 12:26:06 - kube-apiserver-kind-control-plane
|
||||
2021/09/09 12:26:06 - kube-controller-manager-kind-control-plane
|
||||
2021/09/09 12:26:06 - kube-proxy-fgpfd
|
||||
2021/09/09 12:26:06 - kube-scheduler-kind-control-plane
|
||||
2021/09/09 12:26:06 CONFIGMAPS
|
||||
2021/09/09 12:26:06 - coredns
|
||||
2021/09/09 12:26:06 - extension-apiserver-authentication
|
||||
2021/09/09 12:26:06 - kube-proxy
|
||||
2021/09/09 12:26:06 - kube-root-ca.crt
|
||||
2021/09/09 12:26:06 - kubeadm-config
|
||||
2021/09/09 12:26:06 - kubelet-config-1.21
|
||||
$ go1.18beta1 run ./
|
||||
2021/12/15 12:08:11 LISTING PODS
|
||||
2021/12/15 12:08:11 - coredns-558bd4d5db-hjs27
|
||||
2021/12/15 12:08:11 - coredns-558bd4d5db-vhrtd
|
||||
2021/12/15 12:08:11 - etcd-kind-control-plane
|
||||
2021/12/15 12:08:11 - kindnet-c977m
|
||||
2021/12/15 12:08:11 - kube-apiserver-kind-control-plane
|
||||
2021/12/15 12:08:11 - kube-controller-manager-kind-control-plane
|
||||
2021/12/15 12:08:11 - kube-proxy-fgpfd
|
||||
2021/12/15 12:08:11 - kube-scheduler-kind-control-plane
|
||||
I1215 12:08:11.086322 32526 shared_informer.go:240] Waiting for caches to sync for /v1, Resource=configmaps
|
||||
2021/12/15 12:08:11 --> ADD kube-public/cluster-info
|
||||
2021/12/15 12:08:11 --> ADD kube-system/extension-apiserver-authentication
|
||||
2021/12/15 12:08:11 --> ADD tekton-pipelines/config-logging
|
||||
...
|
||||
2021/12/15 12:08:11 LISTING CONFIGMAPS
|
||||
2021/12/15 12:08:11 - coredns
|
||||
2021/12/15 12:08:11 - extension-apiserver-authentication
|
||||
2021/12/15 12:08:11 - kube-proxy
|
||||
2021/12/15 12:08:11 - kube-root-ca.crt
|
||||
2021/12/15 12:08:11 - kubeadm-config
|
||||
2021/12/15 12:08:11 - kubelet-config-1.21
|
||||
```
|
||||
|
||||
# THIS IS AN EXPERIMENT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue