2017-08-07 17:07:38 -05:00
|
|
|
{{/*
|
2018-08-28 17:25:13 +00:00
|
|
|
Copyright 2017 The Openstack-Helm Authors.
|
2017-08-07 17:07:38 -05:00
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/}}
|
2017-02-17 09:18:44 -05:00
|
|
|
|
2017-08-07 11:37:42 -05:00
|
|
|
{{- if .Values.manifests.configmap_etc }}
|
2017-07-05 02:34:12 -05:00
|
|
|
{{- $envAll := . }}
|
|
|
|
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.auth_uri -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.cinder.keystone_authtoken "auth_uri" -}}
|
2017-04-07 16:37:38 +02:00
|
|
|
{{- end -}}
|
|
|
|
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.auth_url -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.cinder.keystone_authtoken "auth_url" -}}
|
2017-04-07 16:37:38 +02:00
|
|
|
{{- end -}}
|
|
|
|
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.region_name -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.keystone_authtoken "region_name" .Values.endpoints.identity.auth.cinder.region_name -}}
|
2017-07-02 19:43:43 -05:00
|
|
|
{{- end -}}
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.project_name -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.keystone_authtoken "project_name" .Values.endpoints.identity.auth.cinder.project_name -}}
|
2017-07-02 19:43:43 -05:00
|
|
|
{{- end -}}
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.project_domain_name -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.keystone_authtoken "project_domain_name" .Values.endpoints.identity.auth.cinder.project_domain_name -}}
|
2017-07-02 19:43:43 -05:00
|
|
|
{{- end -}}
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.user_domain_name -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.keystone_authtoken "user_domain_name" .Values.endpoints.identity.auth.cinder.user_domain_name -}}
|
2017-07-02 19:43:43 -05:00
|
|
|
{{- end -}}
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.username -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.keystone_authtoken "username" .Values.endpoints.identity.auth.cinder.username -}}
|
2017-07-02 19:43:43 -05:00
|
|
|
{{- end -}}
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.password -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.keystone_authtoken "password" .Values.endpoints.identity.auth.cinder.password -}}
|
2017-07-02 19:43:43 -05:00
|
|
|
{{- end -}}
|
|
|
|
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.keystone_authtoken.memcached_servers -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := tuple "oslo_cache" "internal" "memcache" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" | set .Values.conf.cinder.keystone_authtoken "memcached_servers" -}}
|
2017-04-07 16:37:38 +02:00
|
|
|
{{- end -}}
|
|
|
|
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.database.connection -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := tuple "oslo_db" "internal" "cinder" "mysql" . | include "helm-toolkit.endpoints.authenticated_endpoint_uri_lookup"| set .Values.conf.cinder.database "connection" -}}
|
2017-04-07 16:37:38 +02:00
|
|
|
{{- end -}}
|
|
|
|
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.transport_url -}}
|
2019-06-17 08:56:59 -05:00
|
|
|
{{- $_ := tuple "oslo_messaging" "internal" "cinder" "amqp" . | include "helm-toolkit.endpoints.authenticated_transport_endpoint_uri_lookup" | set .Values.conf.cinder.DEFAULT "transport_url" -}}
|
2017-04-07 16:37:38 +02:00
|
|
|
{{- end -}}
|
|
|
|
|
2017-09-20 00:32:03 -05:00
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.glance_api_servers -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := tuple "image" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.cinder.DEFAULT "glance_api_servers" -}}
|
2017-04-07 16:37:38 +02:00
|
|
|
{{- end -}}
|
|
|
|
|
2019-05-24 02:43:15 -04:00
|
|
|
{{- if (contains "cinder.backup.drivers.swift" .Values.conf.cinder.DEFAULT.backup_driver) }}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.backup_swift_auth_version -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.DEFAULT "backup_swift_auth_version" "3" -}}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.backup_swift_auth_url -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup"| set .Values.conf.cinder.DEFAULT "backup_swift_auth_url" -}}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.backup_swift_user_domain -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.DEFAULT "backup_swift_user_domain" .Values.endpoints.identity.auth.cinder.user_domain_name -}}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.backup_swift_user -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.DEFAULT "backup_swift_user" .Values.endpoints.identity.auth.cinder.username -}}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.backup_swift_key -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.DEFAULT "backup_swift_key" .Values.endpoints.identity.auth.cinder.password -}}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.backup_swift_project_domain -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.DEFAULT "backup_swift_project_domain" .Values.endpoints.identity.auth.cinder.project_domain_name -}}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.backup_swift_project -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.DEFAULT "backup_swift_project" .Values.endpoints.identity.auth.cinder.project_name -}}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.swift_catalog_info -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := set .Values.conf.cinder.DEFAULT "swift_catalog_info" "object-store:swift:internalURL" -}}
|
2017-12-27 21:55:53 -05:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
2018-03-03 15:50:37 +00:00
|
|
|
{{- if empty .Values.conf.cinder.DEFAULT.osapi_volume_listen_port -}}
|
2018-06-15 19:26:57 -05:00
|
|
|
{{- $_ := tuple "volume" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" | set .Values.conf.cinder.DEFAULT "osapi_volume_listen_port" -}}
|
2018-03-03 15:50:37 +00:00
|
|
|
{{- end -}}
|
2018-06-17 16:12:25 -05:00
|
|
|
|
|
|
|
{{- if and (empty .Values.conf.logging.handler_fluent) (has "fluent" .Values.conf.logging.handlers.keys) -}}
|
|
|
|
{{- $fluentd_host := tuple "fluentd" "internal" $envAll | include "helm-toolkit.endpoints.hostname_namespaced_endpoint_lookup" }}
|
|
|
|
{{- $fluentd_port := tuple "fluentd" "internal" "service" $envAll | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
2018-06-28 16:35:08 -05:00
|
|
|
{{- $fluent_args := printf "('%s.%s', '%s', %s)" .Release.Namespace .Release.Name $fluentd_host $fluentd_port }}
|
2018-06-17 16:12:25 -05:00
|
|
|
{{- $handler_fluent := dict "class" "fluent.handler.FluentHandler" "formatter" "fluent" "args" $fluent_args -}}
|
|
|
|
{{- $_ := set .Values.conf.logging "handler_fluent" $handler_fluent -}}
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
{{- if and (empty .Values.conf.logging.formatter_fluent) (has "fluent" .Values.conf.logging.formatters.keys) -}}
|
|
|
|
{{- $formatter_fluent := dict "class" "oslo_log.formatters.FluentFormatter" -}}
|
|
|
|
{{- $_ := set .Values.conf.logging "formatter_fluent" $formatter_fluent -}}
|
|
|
|
{{- end -}}
|
2017-07-05 02:34:12 -05:00
|
|
|
---
|
2017-01-09 02:09:40 +00:00
|
|
|
apiVersion: v1
|
2018-08-08 14:56:30 -05:00
|
|
|
kind: Secret
|
2017-01-09 02:09:40 +00:00
|
|
|
metadata:
|
|
|
|
name: cinder-etc
|
2018-08-08 14:56:30 -05:00
|
|
|
type: Opaque
|
2017-01-09 02:09:40 +00:00
|
|
|
data:
|
2018-08-08 14:56:30 -05:00
|
|
|
rally_tests.yaml: {{ toYaml .Values.conf.rally_tests.tests | b64enc }}
|
|
|
|
cinder.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.cinder | b64enc }}
|
|
|
|
logging.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.logging | b64enc }}
|
|
|
|
backends.conf: {{ include "helm-toolkit.utils.to_ini" .Values.conf.backends | b64enc }}
|
|
|
|
api-paste.ini: {{ include "helm-toolkit.utils.to_ini" .Values.conf.paste | b64enc }}
|
|
|
|
policy.json: {{ toJson .Values.conf.policy | b64enc }}
|
2019-04-11 10:53:02 -05:00
|
|
|
api_audit_map.conf: {{ include "helm-toolkit.utils.to_oslo_conf" .Values.conf.api_audit_map | b64enc }}
|
2018-08-08 14:56:30 -05:00
|
|
|
cinder_sudoers: {{ $envAll.Values.conf.cinder_sudoers | b64enc }}
|
|
|
|
rootwrap.conf: {{ $envAll.Values.conf.rootwrap | b64enc }}
|
2019-02-28 20:04:49 -05:00
|
|
|
resource_filters.json: {{ toJson .Values.conf.resource_filters | b64enc }}
|
2018-03-27 14:24:07 -04:00
|
|
|
{{- range $key, $value := $envAll.Values.conf.rootwrap_filters }}
|
|
|
|
{{- $filePrefix := replace "_" "-" $key }}
|
2018-08-08 14:56:30 -05:00
|
|
|
{{ printf "%s.filters" $filePrefix }}: {{ $value.content | b64enc }}
|
2018-03-27 14:24:07 -04:00
|
|
|
{{- end }}
|
2018-06-11 07:01:07 +00:00
|
|
|
{{- if .Values.backup.external_ceph_rbd.enabled }}
|
2018-08-08 14:56:30 -05:00
|
|
|
external-backup-ceph.conf: {{ include "helm-toolkit.utils.to_ini" .Values.backup.external_ceph_rbd.conf | b64enc }}
|
2018-06-11 07:01:07 +00:00
|
|
|
{{- end }}
|
2017-08-07 11:37:42 -05:00
|
|
|
{{- end }}
|