Merge "Add a configmap for mariadb ingress controller"

This commit is contained in:
Zuul 2019-07-04 01:07:53 +00:00 committed by Gerrit Code Review
commit 683f755f7e
3 changed files with 31 additions and 0 deletions

View File

@ -28,6 +28,7 @@ function start () {
--election-id=${RELEASE_NAME} \
--ingress-class=${INGRESS_CLASS} \
--default-backend-service=${POD_NAMESPACE}/${ERROR_PAGE_SERVICE} \
--configmap=${POD_NAMESPACE}/mariadb-ingress-conf \
--tcp-services-configmap=${POD_NAMESPACE}/mariadb-services-tcp
}

View File

@ -0,0 +1,27 @@
{{/*
Copyright 2019 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_conf }}
{{- $envAll := . }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: mariadb-ingress-conf
data:
{{ toYaml .Values.conf.ingress_conf | indent 2 }}
{{- end }}

View File

@ -269,6 +269,8 @@ conf:
- --number-char-cols=1
- --number-int-cols=1
ingress: null
ingress_conf:
worker-processes: "auto"
backup:
enabled: true
base_path: /var/backup
@ -388,6 +390,7 @@ network_policy:
manifests:
configmap_bin: true
configmap_etc: true
configmap_ingress_conf: true
configmap_services_tcp: true
deployment_error: true
deployment_ingress: true