diff --git a/roles/kubernetes-apps/container_runtimes/crun/files/runtimeclass-crun.yml b/roles/kubernetes-apps/container_runtimes/crun/files/runtimeclass-crun.yml index 1e23a4aa9..b3d87bfde 100644 --- a/roles/kubernetes-apps/container_runtimes/crun/files/runtimeclass-crun.yml +++ b/roles/kubernetes-apps/container_runtimes/crun/files/runtimeclass-crun.yml @@ -1,6 +1,6 @@ --- kind: RuntimeClass -apiVersion: node.k8s.io/v1beta1 +apiVersion: node.k8s.io/v1{{ 'beta1' if kube_version is version('v1.20.0', '<') }} metadata: name: crun handler: crun diff --git a/roles/kubernetes-apps/container_runtimes/kata_containers/templates/runtimeclass-kata-qemu.yml.j2 b/roles/kubernetes-apps/container_runtimes/kata_containers/templates/runtimeclass-kata-qemu.yml.j2 index 7f3559554..b46e92b79 100644 --- a/roles/kubernetes-apps/container_runtimes/kata_containers/templates/runtimeclass-kata-qemu.yml.j2 +++ b/roles/kubernetes-apps/container_runtimes/kata_containers/templates/runtimeclass-kata-qemu.yml.j2 @@ -1,6 +1,6 @@ --- kind: RuntimeClass -apiVersion: node.k8s.io/v1beta1 +apiVersion: node.k8s.io/v1{{ 'beta1' if kube_version is version('v1.20.0', '<') }} metadata: name: kata-qemu handler: kata-qemu