Open sanjiths opened 3 years ago
@sanjiths I updated the Go example with support for Go modules. Take a look to see if that helps.
Hi @vladimirvivien! It really helped :) thank you so much (y) Now, I have one more problem! How can i use this binary from inside a container or a pod?
I am facing below issue:
./podlist tree
2021/01/26 10:42:39 stat /home/vault/.kube/config: no such file or directory
[vault@vaultagent-0 tmp]$ vi /home/vault/.kube/config:
Thanks, Sanjith S
@sanjiths the code in this example is written to be used outside of a cluster.
But it's easy to change your code to make it work from within a cluster.
Checkout the link below (from the client-go project), it shows what to change to fix your issue:
I am trying to build a binary for https://github.com/vladimirvivien/k8s-client-examples/blob/master/go/podlist/maing.go I have imported the required packages and facing the below issue:
Could you pls tell me how to proceed?