Skip to content
Unverified Commit 7f90fc7b authored by Seena Fallah's avatar Seena Fallah Committed by GitHub
Browse files

containerd: simplify registry mirror template (#11326)



Simplify registry mirror rendering in config.toml.
The map filter can extract the host list from mirrors so we can
just unique them and render them without needing to construct vars
for it.
For the registry mirror tls section, we can first extract mirrors
from the dict then filter on only the ones having skip_veridy defined
first and then filter on the ones having true (as the dict might not
have skip_verify defined and that would cause errors of undefined var).

This will speed up and simply the templating.

Signed-off-by: default avatarSeena Fallah <seenafallah@gmail.com>
parent fb312e51
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment