From 92b13dca8ce3ae6cdd118251efe0c649ee3d46bf Mon Sep 17 00:00:00 2001 From: ademariag Date: Thu, 25 Mar 2021 13:53:13 +0000 Subject: [PATCH] 83: fix cronjob volumes (#84) Co-authored-by: Alessandro De Maria --- components/generators/kubernetes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/generators/kubernetes/__init__.py b/components/generators/kubernetes/__init__.py index 4d29fd9d..0a12c77a 100644 --- a/components/generators/kubernetes/__init__.py +++ b/components/generators/kubernetes/__init__.py @@ -330,7 +330,7 @@ def body(self): self.root.spec.parallelism = component.get("parallelism", 1) -class CronJob(k8s.Base): +class CronJob(k8s.Base, WorkloadCommon): def new(self): self.kwargs.apiVersion = "batch/v1beta1" self.kwargs.kind = "CronJob"