diff --git a/kube.libsonnet b/kube.libsonnet index 418a76a..da9e89a 100644 --- a/kube.libsonnet +++ b/kube.libsonnet @@ -265,7 +265,7 @@ assert (!$._assert) || (!self.tty || self.stdin) : "tty=true requires stdin=true", }, - PodDisruptionBudget(name): $._Object("policy/v1beta1", "PodDisruptionBudget", name) { + PodDisruptionBudget(name): $._Object("policy/v1", "PodDisruptionBudget", name) { local this = self, target_pod:: error "target_pod required", spec: { @@ -528,7 +528,7 @@ }, }, - CronJob(name): $._Object("batch/v1beta1", "CronJob", name) { + CronJob(name): $._Object("batch/v1", "CronJob", name) { local cronjob = self, spec: { diff --git a/tests/golden/test-simple-validate.pass.json b/tests/golden/test-simple-validate.pass.json index 6e442cf..d271cd6 100644 --- a/tests/golden/test-simple-validate.pass.json +++ b/tests/golden/test-simple-validate.pass.json @@ -17,7 +17,7 @@ } }, { - "apiVersion": "batch/v1beta1", + "apiVersion": "batch/v1", "kind": "CronJob", "metadata": { "annotations": { }, @@ -200,7 +200,7 @@ } }, { - "apiVersion": "policy/v1beta1", + "apiVersion": "policy/v1", "kind": "PodDisruptionBudget", "metadata": { "annotations": { },