From 72080c9ec623d4b771dffe3b4a7ef3a7043f486f Mon Sep 17 00:00:00 2001 From: okozachenko Date: Tue, 12 May 2020 20:13:43 +0300 Subject: [PATCH] Insert hostAliases in horizon deployment from CR spec Change-Id: Ia9869bf1ef121733e699c1a5ac060b8cd2001be0 --- openstack_operator/templates/horizon/deployment.yml.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openstack_operator/templates/horizon/deployment.yml.j2 b/openstack_operator/templates/horizon/deployment.yml.j2 index 06287e00..87007178 100644 --- a/openstack_operator/templates/horizon/deployment.yml.j2 +++ b/openstack_operator/templates/horizon/deployment.yml.j2 @@ -81,3 +81,7 @@ spec: tolerations: {{ spec.tolerations | to_yaml | indent(8) }} {% endif %} +{% if 'hostAliases' in spec %} + hostAliases: + {{ spec.hostAliases | to_yaml | indent(8) }} +{% endif %}