Glance: Move all config to be directly values driven.
This PS moves all the config files to be directly values driven, both simplifying over-ride and allowing configs to be targeted to pods in future work. Change-Id: Ida5d9e312cc18cb50f5805a59f9fc4fef1a98658
This commit is contained in:
parent
671274369f
commit
2ce6f32266
@ -162,6 +162,5 @@ data:
|
|||||||
{{ include "helm-toolkit.utils.to_ini" .Values.conf.paste_registry | indent 4 }}
|
{{ include "helm-toolkit.utils.to_ini" .Values.conf.paste_registry | indent 4 }}
|
||||||
policy.json: |
|
policy.json: |
|
||||||
{{ toJson .Values.conf.policy | indent 4 }}
|
{{ toJson .Values.conf.policy | indent 4 }}
|
||||||
swift-store.conf: |
|
{{- include "helm-toolkit.snippets.values_template_renderer" (dict "envAll" $envAll "template" .Values.conf.swift_store "key" "swift-store.conf") | indent 2 }}
|
||||||
{{- tuple .Values.conf.swift_store "etc/_swift-store.conf.tpl" . | include "helm-toolkit.utils.configmap_templater" }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,30 +0,0 @@
|
|||||||
{{/*
|
|
||||||
Copyright 2017 The Openstack-Helm Authors.
|
|
||||||
|
|
||||||
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.
|
|
||||||
*/}}
|
|
||||||
|
|
||||||
[{{ .Values.conf.glance.glance_store.default_swift_reference }}]
|
|
||||||
{{- if eq .Values.storage "radosgw" }}
|
|
||||||
auth_version = 1
|
|
||||||
auth_address = {{ tuple "ceph_object_store" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
|
|
||||||
user = {{ .Values.endpoints.ceph_object_store.auth.glance.username }}:swift
|
|
||||||
key = {{ .Values.endpoints.ceph_object_store.auth.glance.password }}
|
|
||||||
{{- else }}
|
|
||||||
user = {{ .Values.endpoints.identity.auth.glance.project_name }}:{{ .Values.endpoints.identity.auth.glance.username }}
|
|
||||||
key = {{ .Values.endpoints.identity.auth.glance.password }}
|
|
||||||
auth_address = {{ tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
|
|
||||||
user_domain_name = {{ .Values.endpoints.identity.auth.glance.user_domain_name }}
|
|
||||||
project_domain_name = {{ .Values.endpoints.identity.auth.glance.project_domain_name }}
|
|
||||||
auth_version = 3
|
|
||||||
{{- end -}}
|
|
@ -278,9 +278,21 @@ conf:
|
|||||||
max_retries: -1
|
max_retries: -1
|
||||||
oslo_messaging_notifications:
|
oslo_messaging_notifications:
|
||||||
driver: messagingv2
|
driver: messagingv2
|
||||||
swift_store:
|
swift_store: |
|
||||||
override:
|
[{{ .Values.conf.glance.glance_store.default_swift_reference }}]
|
||||||
append:
|
{{- if eq .Values.storage "radosgw" }}
|
||||||
|
auth_version = 1
|
||||||
|
auth_address = {{ tuple "ceph_object_store" "public" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
|
||||||
|
user = {{ .Values.endpoints.ceph_object_store.auth.glance.username }}:swift
|
||||||
|
key = {{ .Values.endpoints.ceph_object_store.auth.glance.password }}
|
||||||
|
{{- else }}
|
||||||
|
user = {{ .Values.endpoints.identity.auth.glance.project_name }}:{{ .Values.endpoints.identity.auth.glance.username }}
|
||||||
|
key = {{ .Values.endpoints.identity.auth.glance.password }}
|
||||||
|
auth_address = {{ tuple "identity" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_uri_lookup" }}
|
||||||
|
user_domain_name = {{ .Values.endpoints.identity.auth.glance.user_domain_name }}
|
||||||
|
project_domain_name = {{ .Values.endpoints.identity.auth.glance.project_domain_name }}
|
||||||
|
auth_version = 3
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
network:
|
network:
|
||||||
api:
|
api:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user