Skip to content

Commit

Permalink
Add containerd source client header for CAPZ
Browse files Browse the repository at this point in the history
  • Loading branch information
Cecile Robert-Michon committed Feb 23, 2022
1 parent 4972d35 commit 8dccc94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ imports = ["/etc/containerd/conf.d/*.toml"]
[plugins]
[plugins."io.containerd.grpc.v1.cri"]
sandbox_image = "{{ pause_image }}"
{% if kubernetes_semver is version('v1.21.0', '>=') %}
{% if kubernetes_semver is version('v1.21.0', '>=') %}
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup = true
{% endif %}
{% endif %}
{% if packer_builder_type.startswith('azure') %}
[plugins."io.containerd.grpc.v1.cri".registry.headers]
X-Meta-Source-Client = ["azure/capz"]
{% endif %}

{{containerd_additional_settings | b64decode}}
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ imports = ["{{ containerd_conf_dir }}\\conf.d\\*.toml"]
[plugins."io.containerd.grpc.v1.cri".cni]
bin_dir = "{{ plugin_bin_dir }}"
conf_dir = "{{ plugin_conf_dir }}"
{% if packer_builder_type.startswith('azure') %}
[plugins."io.containerd.grpc.v1.cri".registry.headers]
X-Meta-Source-Client = ["azure/capz"]
{% endif %}

{{containerd_additional_settings | b64decode}}

0 comments on commit 8dccc94

Please sign in to comment.