diff --git a/neutron/templates/configmap-etc.yaml b/neutron/templates/configmap-etc.yaml index d409c6e3..d780aa16 100644 --- a/neutron/templates/configmap-etc.yaml +++ b/neutron/templates/configmap-etc.yaml @@ -84,8 +84,17 @@ limitations under the License. {{- set $envAll.Values.conf.neutron.nova "password" $envAll.Values.endpoints.identity.auth.nova.password | quote | trunc 0 -}} {{- end -}} +{{/* +nova_metadata_ip can go away when Newton is no longer supported, otherwise +just set it along with nova_metadata_host. +*/}} {{- if empty $envAll.Values.conf.metadata_agent.DEFAULT.nova_metadata_ip -}} {{- tuple "compute_metadata" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" | set $envAll.Values.conf.metadata_agent.DEFAULT "nova_metadata_ip" | quote | trunc 0 -}} +{{- end -}} +{{- if empty $envAll.Values.conf.metadata_agent.DEFAULT.nova_metadata_host -}} +{{- tuple "compute_metadata" "public" . | include "helm-toolkit.endpoints.hostname_fqdn_endpoint_lookup" | set $envAll.Values.conf.metadata_agent.DEFAULT "nova_metadata_host" | quote | trunc 0 -}} +{{- end -}} +{{- if empty $envAll.Values.conf.metadata_agent.DEFAULT.nova_metadata_port -}} {{- set $envAll.Values.conf.metadata_agent.DEFAULT "nova_metadata_port" 80 | quote | trunc 0 -}} {{- end -}} {{- if empty $envAll.Values.conf.metadata_agent.cache.memcache_servers -}}