Browse Source
Remove duplication in template (#9301)
by concatenating default and additional runtimes
pull/9302/head
Ilya Margolin
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
9 deletions
-
roles/container-engine/containerd/templates/config.toml.j2
|
@ -22,15 +22,7 @@ oom_score = {{ containerd_oom_score }} |
|
|
default_runtime_name = "{{ containerd_default_runtime | default('runc') }}" |
|
|
default_runtime_name = "{{ containerd_default_runtime | default('runc') }}" |
|
|
snapshotter = "{{ containerd_snapshotter | default('overlayfs') }}" |
|
|
snapshotter = "{{ containerd_snapshotter | default('overlayfs') }}" |
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes] |
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes] |
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.{{ containerd_runc_runtime.name }}] |
|
|
|
|
|
runtime_type = "{{ containerd_runc_runtime.type }}" |
|
|
|
|
|
runtime_engine = "{{ containerd_runc_runtime.engine}}" |
|
|
|
|
|
runtime_root = "{{ containerd_runc_runtime.root }}" |
|
|
|
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.{{ containerd_runc_runtime.name }}.options] |
|
|
|
|
|
{% for key, value in containerd_runc_runtime.options.items() %} |
|
|
|
|
|
{{ key }} = {{ value }} |
|
|
|
|
|
{% endfor %} |
|
|
|
|
|
{% for runtime in containerd_additional_runtimes %} |
|
|
|
|
|
|
|
|
{% for runtime in [containerd_runc_runtime] + containerd_additional_runtimes %} |
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.{{ runtime.name }}] |
|
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.{{ runtime.name }}] |
|
|
runtime_type = "{{ runtime.type }}" |
|
|
runtime_type = "{{ runtime.type }}" |
|
|
runtime_engine = "{{ runtime.engine }}" |
|
|
runtime_engine = "{{ runtime.engine }}" |
|
|