Remove global configmap (#907)

This commit is contained in:
yfei1
2019-10-25 15:44:15 -07:00
committed by GitHub
parent 7a48467cb5
commit c859e04bf9
3 changed files with 2 additions and 65 deletions

View File

@ -49,14 +49,14 @@ resources:
{{- end -}}
{{- define "openmatch.volumemounts.configs" -}}
{{- range $configName, $configValues := (mergeOverwrite .Values.configs .Values.global.configs) }}
{{- range $configName, $configValues := .Values.configs }}
- name: {{ $configValues.volumeName }}
mountPath: {{ $configValues.mountPath }}
{{- end }}
{{- end -}}
{{- define "openmatch.volumes.configs" -}}
{{- range $configName, $configValues := (mergeOverwrite .Values.configs .Values.global.configs) }}
{{- range $configName, $configValues := .Values.configs }}
- name: {{ $configValues.volumeName }}
configMap:
name: {{ $configName }}

View File

@ -1,56 +0,0 @@
# Copyright 2019 Google LLC
#
# 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 index .Values "open-match-core" "enabled" }}
apiVersion: v1
kind: ConfigMap
metadata:
name: global-configmap
namespace: {{ .Release.Namespace }}
annotations: {{- include "openmatch.chartmeta" . | nindent 4 }}
labels:
app: {{ template "openmatch.name" . }}
component: config
release: {{ .Release.Name }}
data:
global_config.yaml: |-
telemetry:
zpages:
enable: "{{ .Values.global.telemetry.zpages.enabled }}"
jaeger:
enable: "{{ .Values.global.telemetry.jaeger.enabled }}"
agentEndpoint: "{{ .Values.global.telemetry.jaeger.agentEndpoint }}"
collectorEndpoint: "{{ .Values.global.telemetry.jaeger.collectorEndpoint }}"
prometheus:
enable: "{{ .Values.global.telemetry.prometheus.enabled }}"
endpoint: "{{ .Values.global.telemetry.prometheus.endpoint }}"
serviceDiscovery: "{{ .Values.global.telemetry.prometheus.serviceDiscovery }}"
stackdriver:
enable: "{{ .Values.global.telemetry.stackdriver.enabled }}"
gcpProjectId: "{{ .Values.global.gcpProjectId }}"
metricPrefix: "{{ .Values.global.telemetry.stackdriver.metricPrefix }}"
zipkin:
enable: "{{ .Values.global.telemetry.zipkin.enabled }}"
endpoint: "{{ .Values.global.telemetry.zipkin.endpoint }}"
reporterEndpoint: "{{ .Values.global.telemetry.zipkin.reporterEndpoint }}"
reportingPeriod: "{{ .Values.global.telemetry.reportingPeriod }}"
{{- if .Values.global.tls.enabled }}
api:
tls:
trustedCertificatePath: "{{.Values.global.tls.rootca.mountPath}}/public.cert"
certificatefile: "{{.Values.global.tls.server.mountPath}}/public.cert"
privatekey: "{{.Values.global.tls.server.mountPath}}/private.key"
rootcertificatefile: "{{.Values.global.tls.rootca.mountPath}}/public.cert"
{{- end -}}
{{- end }}

View File

@ -228,13 +228,6 @@ global:
rpc:
enabled: false
# Specifies the location and name of the Open Match cluster-level config volumes.
# Used in template: `openmatch.volumemounts.configs` and `openmatch.volumes.configs` under `templates/_helpers.tpl` file.
configs:
global-configmap:
volumeName: global-config-volume
mountPath: /app/config/global
# Use this field if you need to override the image registry and image tag for all services defined in this chart
image:
registry: