2cffc4e3ae
Currently when updating configuration for mariadb, ingress pods also are being restarted, however there were no reasons for this. Change-Id: I398e20541a0e2337e9a5d100f3ef6ce4ad7d0284
32 lines
929 B
YAML
32 lines
929 B
YAML
{{/*
|
|
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.
|
|
*/}}
|
|
|
|
{{- if .Values.manifests.configmap_ingress_etc }}
|
|
{{- $envAll := . }}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: mariadb-ingress-etc
|
|
data:
|
|
{{- if $envAll.Values.conf.ingress }}
|
|
nginx.tmpl: |
|
|
{{ $envAll.Values.conf.ingress | indent 4 }}
|
|
{{- else }}
|
|
{{ ( $envAll.Files.Glob "files/nginx.tmpl" ).AsConfig | indent 2 }}
|
|
{{- end }}
|
|
{{- end }}
|