template crun manifest (#7305)

add missing else to if inline
This commit is contained in:
Sergey 2021-03-02 12:57:19 +03:00 committed by GitHub
parent d4eecac108
commit 2c9fc18903
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -1,10 +1,10 @@
---
- name: crun | Copy runtime class manifest
copy:
template:
src: runtimeclass-crun.yml
dest: "{{ kube_config_dir }}/runtimeclass-crun.yml"
mode: preserve
mode: "0664"
when:
- inventory_hostname == groups['kube-master'][0]

View file

@ -1,6 +1,6 @@
---
kind: RuntimeClass
apiVersion: node.k8s.io/v1{{ 'beta1' if kube_version is version('v1.20.0', '<') }}
apiVersion: node.k8s.io/v1{{ 'beta1' if kube_version is version('v1.20.0', '<') else '' }}
metadata:
name: crun
handler: crun

View file

@ -1,6 +1,6 @@
---
kind: RuntimeClass
apiVersion: node.k8s.io/v1{{ 'beta1' if kube_version is version('v1.20.0', '<') }}
apiVersion: node.k8s.io/v1{{ 'beta1' if kube_version is version('v1.20.0', '<') else '' }}
metadata:
name: kata-qemu
handler: kata-qemu