mirror of
https://github.com/googleforgames/open-match.git
synced 2025-03-25 13:24:18 +00:00
Remove global configmap (#907)
This commit is contained in:
@ -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 }}
|
||||
|
@ -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 }}
|
@ -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:
|
||||
|
Reference in New Issue
Block a user