I started a pod in kubernetes cluster which can call kubernetes api via go-sdk (like in this example: https://github.com/kubernetes/client-go/tree/master/examples/in-cluster-client-configuration). I want to listen some external events in this pod (e.g. GitHub web-hooks), fetch yaml
configuration files from repository and apply them to this cluster.
Is it possible to call kubectl apply -f <config-file>
via kubernetes API (or better via golang SDK)?