Create Kubernetes Jobs in Golang using K8s client-go API
Now we have the clientset, we can create a job on the cluster. To do this, we will write a function called launchK8sJob which will be of the form: func launchK8sJob (clientset *kubernetes.Clientset, jobName *string, image *string, cmd *string) But before we begin, let's recall how the K8s job specification looks like: