56 lines
2.5 KiB
YAML
56 lines
2.5 KiB
YAML
{{/*
|
|
#
|
|
# Copyright (c) 2018 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
*/}}
|
|
|
|
{{- define "nova_proxy.configmap.etc" }}
|
|
{{- $envAll := index . 1 }}
|
|
{{- with $envAll }}
|
|
|
|
{{- if empty .Values.conf.nova_api_proxy.keystone_authtoken.auth_uri -}}
|
|
{{- $_ := tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" | set .Values.conf.nova_api_proxy.keystone_authtoken "auth_uri" -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.nova_api_proxy.keystone_authtoken.auth_url -}}
|
|
{{- $_ := tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" | set .Values.conf.nova_api_proxy.keystone_authtoken "auth_url" -}}
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.nova_api_proxy.keystone_authtoken.region_name -}}
|
|
{{- $_ := set .Values.conf.nova_api_proxy.keystone_authtoken "region_name" .Values.endpoints.identity.auth.nova.region_name -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.nova_api_proxy.keystone_authtoken.project_name -}}
|
|
{{- $_ := set .Values.conf.nova_api_proxy.keystone_authtoken "project_name" .Values.endpoints.identity.auth.nova.project_name -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.nova_api_proxy.keystone_authtoken.project_domain_name -}}
|
|
{{- $_ := set .Values.conf.nova_api_proxy.keystone_authtoken "project_domain_name" .Values.endpoints.identity.auth.nova.project_domain_name -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.nova_api_proxy.keystone_authtoken.user_domain_name -}}
|
|
{{- $_ := set .Values.conf.nova_api_proxy.keystone_authtoken "user_domain_name" .Values.endpoints.identity.auth.nova.user_domain_name -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.nova_api_proxy.keystone_authtoken.username -}}
|
|
{{- $_ := set .Values.conf.nova_api_proxy.keystone_authtoken "username" .Values.endpoints.identity.auth.nova.username -}}
|
|
{{- end -}}
|
|
{{- if empty .Values.conf.nova_api_proxy.keystone_authtoken.password -}}
|
|
{{- $_ := set .Values.conf.nova_api_proxy.keystone_authtoken "password" .Values.endpoints.identity.auth.nova.password -}}
|
|
{{- end -}}
|
|
|
|
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: nova-api-proxy-etc
|
|
data:
|
|
nova-api-proxy.conf: |
|
|
{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.nova_api_proxy | indent 4 }}
|
|
api-proxy-paste.ini: |
|
|
{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.paste | indent 4 }}
|
|
logging.conf: |
|
|
{{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.logging | indent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- if .Values.manifests.configmap_etc }}
|
|
{{- list "nova-proxy-etc" . | include "nova_proxy.configmap.etc" }}
|
|
{{- end }}
|