In last blog post, we learnt about Golang kubernetes client and various ways of installing it.
There are various packages which will be used for most of the times during development.
Mostly used packages from
tools/clientcmd: it is used to setup client from kubeconfig file
kubernetes: it contains kubernetes API clients
with the help of those clients, we can perform actions like GET, LIST, CREATE, UPDATE, DELETE, etc operations on resources.
with client-go, there are other important repositories like:
kubernetes/apiwhich contains Go types of Kubernetes resources.
kubernetes/apimachinerycontains building blocks like schemes, encoding, decoding, conversion, etc.
Now we are familiar with Golang client and other important repositories, let’s see how we can talk to the cluster using all those in the next blog post.