blob: d2d7fcce8a367716af855a866644213a02da36c4 [file] [log] [blame]
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.streamParkDefaultConfiguration.create }}
apiVersion: v1
kind: ConfigMap
metadata:
name: streampark-console-config
namespace: {{ .Release.Namespace }}
labels:
{{- include "streampark.labels" . | nindent 4 }}
data:
application.yml: |+
{{- if .Values.streamParkDefaultConfiguration.append }}
{{- $.Files.Get "conf/streampark-console-config/application.yml" | nindent 4 -}}
{{- end }}
{{- if index (.Values.streamParkDefaultConfiguration) "application.yml" }}
{{- index (.Values.streamParkDefaultConfiguration) "application.yml" | nindent 4 -}}
{{- end }}
application-h2.yml: |+
{{- if .Values.streamParkDefaultConfiguration.append }}
{{- $.Files.Get "conf/streampark-console-config/application-h2.yml" | nindent 4 -}}
{{- end }}
{{- if index (.Values.streamParkDefaultConfiguration) "application-h2.yml" }}
{{- index (.Values.streamParkDefaultConfiguration) "application-h2.yml" | nindent 4 -}}
{{- end }}
application-mysql.yml: |+
{{- if .Values.streamParkDefaultConfiguration.append }}
{{- $.Files.Get "conf/streampark-console-config/application-mysql.yml" | nindent 4 -}}
{{- end }}
{{- if index (.Values.streamParkDefaultConfiguration) "application-mysql.yml" }}
{{- index (.Values.streamParkDefaultConfiguration) "application-mysql.yml" | nindent 4 -}}
{{- end }}
application-pgsql.yml: |+
{{- if .Values.streamParkDefaultConfiguration.append }}
{{- $.Files.Get "conf/streampark-console-config/application-pgsql.yml" | nindent 4 -}}
{{- end }}
{{- if index (.Values.streamParkDefaultConfiguration) "application-pgsql.yml" }}
{{- index (.Values.streamParkDefaultConfiguration) "application-pgsql.yml" | nindent 4 -}}
{{- end }}
logback-spring.xml: |+
{{- if .Values.streamParkDefaultConfiguration.append }}
{{- $.Files.Get "conf/streampark-console-config/logback-spring.xml" | nindent 4 -}}
{{- end }}
{{- if index (.Values.streamParkDefaultConfiguration) "logback-spring.xml" }}
{{- index (.Values.streamParkDefaultConfiguration) "logback-spring.xml" | nindent 4 -}}
{{- end }}
kerberos.yml: |+
{{- if .Values.streamParkDefaultConfiguration.append }}
{{- $.Files.Get "conf/streampark-console-config/kerberos.yml" | nindent 4 -}}
{{- end }}
{{- if index (.Values.streamParkDefaultConfiguration) "kerberos.yml" }}
{{- index (.Values.streamParkDefaultConfiguration) "kerberos.yml" | nindent 4 -}}
{{- end }}
spy.properties: |+
{{- if .Values.streamParkDefaultConfiguration.append }}
{{- $.Files.Get "conf/streampark-console-config/spy.properties" | nindent 4 -}}
{{- end }}
{{- if index (.Values.streamParkDefaultConfiguration) "spy.properties" }}
{{- index (.Values.streamParkDefaultConfiguration) "spy.properties" | nindent 4 -}}
{{- end }}
ValidationMessages.properties: |+
{{- if .Values.streamParkDefaultConfiguration.append }}
{{- $.Files.Get "conf/streampark-console-config/ValidationMessages.properties" | nindent 4 -}}
{{- end }}
{{- if index (.Values.streamParkDefaultConfiguration) "ValidationMessages.properties" }}
{{- index (.Values.streamParkDefaultConfiguration) "ValidationMessages.properties" | nindent 4 -}}
{{- end }}
{{- end }}