registry: add ingress support (#8311)

This commit is contained in:
zhengtianbao
2021-12-21 12:20:46 -06:00
committed by GitHub
parent c1954ff918
commit 02a89543d6
3 changed files with 39 additions and 0 deletions

View File

@@ -59,6 +59,13 @@
- podsecuritypolicy_enabled
- registry_namespace != "kube-system"
- name: Registry | Append nginx ingress templates to Registry Templates list when ingress enabled
set_fact:
registry_templates: "{{ registry_templates + [item] }}"
with_items:
- [{ name: registry-ing, file: registry-ing.yml, type: ing }]
when: ingress_nginx_enabled == true or ingress_alb_enabled == true
- name: Registry | Create manifests
template:
src: "{{ item.file }}.j2"