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 - name: crun | Copy runtime class manifest
copy: template:
src: runtimeclass-crun.yml src: runtimeclass-crun.yml
dest: "{{ kube_config_dir }}/runtimeclass-crun.yml" dest: "{{ kube_config_dir }}/runtimeclass-crun.yml"
mode: preserve mode: "0664"
when: when:
- inventory_hostname == groups['kube-master'][0] - inventory_hostname == groups['kube-master'][0]

View file

@ -1,6 +1,6 @@
--- ---
kind: RuntimeClass 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: metadata:
name: crun name: crun
handler: crun handler: crun

View file

@ -1,6 +1,6 @@
--- ---
kind: RuntimeClass 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: metadata:
name: kata-qemu name: kata-qemu
handler: kata-qemu handler: kata-qemu