Skip to content

Commit

Permalink
update auth/tls template config for containerd 1.3.x (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwmonroe authored and George Kraft committed Jun 1, 2020
1 parent 848bcff commit 29ebcf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions reactive/containerd.py
Expand Up @@ -185,12 +185,14 @@ def upgrade_charm():
"""
Triggered when upgrade-charm is called.
Prevent containerd being implicitly updated.
:return: None
"""
# Prevent containerd apt pkg from being implicitly updated.
apt_hold(CONTAINERD_PACKAGE)

# Re-render config in case the template has changed in the new charm.
config_changed()


@when_not('containerd.br_netfilter.enabled')
def enable_br_netfilter_module():
Expand Down
2 changes: 1 addition & 1 deletion templates/config.toml
Expand Up @@ -69,7 +69,7 @@ oom_score = 0
password = "{{ registry.password }}"
{% endif %}
{% endfor %}
[plugins.cri.registry.tls_configs]
[plugins.cri.registry.configs]
{% for registry in custom_registries %}
{% if registry.ca or registry.cert or registry.key or registry.insecure_skip_verify %}
[plugins.cri.registry.configs."{{ registry.url }}".tls]
Expand Down

0 comments on commit 29ebcf9

Please sign in to comment.