Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Seena Fallah <[email protected]>
- Loading branch information