feat: allow for custom registry
This patch adds a simple CLI which can mirror all the images needed
as well as allow for simple override for `atmosphere_image_repository`
for all images.
diff --git a/roles/keepalived/tasks/main.yml b/roles/keepalived/tasks/main.yml
index dedddfc..d401c4b 100644
--- a/roles/keepalived/tasks/main.yml
+++ b/roles/keepalived/tasks/main.yml
@@ -118,7 +118,7 @@
automountServiceAccountToken: true
initContainers:
- name: init
- image: "{{ keepalived_image_repository }}/kubernetes-entrypoint:latest"
+ image: "{{ lookup('vexxhost.atmosphere.image_ref', 'dep_check', output='ref') }}"
env:
- name: NAMESPACE
valueFrom:
@@ -133,7 +133,7 @@
- name: DEPENDENCY_POD_JSON
value: '[{"labels":{"application":"neutron","component":"neutron-ovs-agent"},"requireSameNode":true}]'
- name: wait-for-ip
- image: "{{ keepalived_image_repository }}/keepalived:{{ keepalived_image_tag }}"
+ image: "{{ lookup('vexxhost.atmosphere.image_ref', 'keepalived', output='ref') }}"
command:
- /bin/wait-for-ip.sh
volumeMounts:
@@ -144,7 +144,7 @@
subPath: wait-for-ip.sh
containers:
- name: keepalived
- image: "{{ keepalived_image_repository }}/keepalived:{{ keepalived_image_tag }}"
+ image: "{{ lookup('vexxhost.atmosphere.image_ref', 'keepalived', output='ref') }}"
command:
- keepalived
- -f