#
#  Copyright 2019 WeBank
#
# 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.
apiVersion: v1
data:
  linkis.properties: |+

    #wds.linkis.test.mode=true

    wds.linkis.server.mybatis.datasource.url=${mysql.url}

    wds.linkis.server.mybatis.datasource.username=${mysql.username}

    wds.linkis.server.mybatis.datasource.password=${mysql.password}


    wds.linkis.log.clear=true
    wds.linkis.server.version=v1

    ##restful
    wds.linkis.server.restful.scan.packages=com.webank.wedatasphere.linkis.metadata.restful.api

    ##mybatis
    wds.linkis.server.mybatis.mapperLocations=classpath:com/webank/wedatasphere/linkis/metadata/hive/dao/impl/*.xml,com/webank/wedatasphere/linkis/metadata/dao/impl/*.xml

    wds.linkis.server.mybatis.typeAliasesPackage=com.webank.wedatasphere.linkis.metadata.domain

    wds.linkis.server.mybatis.BasePackage=com.webank.wedatasphere.linkis.metadata.hive.dao,com.webank.wedatasphere.linkis.metadata.dao

    ##datasource
    hive.meta.url=${hivemeta.url}
    hive.meta.user=${hivemeta.username}
    hive.meta.password=${hivemeta.password}

    #hive.config.dir


    wds.linkis.engine.creation.wait.time.max=2m

kind: ConfigMap
metadata:
  managedFields:
  - apiVersion: v1
    fieldsType: FieldsV1
    fieldsV1:
      f:data:
        .: {}
        f:linkis-metadata.properties: {}
    manager: kubectl
    operation: Update
  name: linkis-metadata-config
  namespace: default

