properly generate podTemplate for the cron job's pod

This commit is contained in:
Sergey Dudoladov
2019-04-02 15:26:27 +02:00
parent de9ffb6eff
commit 40175633a5
5 changed files with 59 additions and 23 deletions
+1
View File
@@ -87,6 +87,7 @@ func NewFromConfig(cfg *rest.Config) (KubernetesClient, error) {
kubeClient.PodDisruptionBudgetsGetter = client.PolicyV1beta1()
kubeClient.RESTClient = client.CoreV1().RESTClient()
kubeClient.RoleBindingsGetter = client.RbacV1beta1()
kubeClient.CronJobsGetter = client.BatchV1beta1()
apiextClient, err := apiextclient.NewForConfig(cfg)
if err != nil {