Simple example for using Go for accessing to Kubernetes.
This program displays namespaces names for default configured context.
We assuming you have a valid ~/.kube/config
file and access to given
Kubernentes cluster.
Compiling for MacOS:
$ make macos
Compiling for Linx:
$ make linux
$ ./bin/listns
On linux:
$ ./bin/listns-linux