#
#  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.jobhistory.restful,com.webank.wedatasphere.linkis.variable.restful,com.webank.wedatasphere.linkis.application.restful,com.webank.wedatasphere.linkis.configuration.restful,com.webank.wedatasphere.linkis.udf.api,com.webank.wedatasphere.linkis.filesystem.restful

    ##mybatis
    wds.linkis.server.mybatis.mapperLocations=classpath:com/webank/wedatasphere/linkis/jobhistory/dao/impl/*.xml,classpath:com/webank/wedatasphere/linkis/variable/dao/impl/*.xml,classpath:com/webank/wedatasphere/linkis/application/dao/impl/*.xml,classpath:com/webank/wedatasphere/linkis/configuration/dao/impl/*.xml,classpath:com/webank/wedatasphere/linkis/udf/dao/impl/*.xml

    wds.linkis.server.mybatis.typeAliasesPackage=com.webank.wedatasphere.linkis.application.entity,com.webank.wedatasphere.linkis.configuration.entity,com.webank.wedatasphere.linkis.query.entity,com.webank.wedatasphere.linkis.udf.entity,com.webank.wedatasphere.linkis.variable.entity

    wds.linkis.server.mybatis.BasePackage=com.webank.wedatasphere.linkis.jobhistory.dao,com.webank.wedatasphere.linkis.variable.dao,com.webank.wedatasphere.linkis.application.dao,com.webank.wedatasphere.linkis.configuration.dao,com.webank.wedatasphere.linkis.udf.dao

    ##workspace
    wds.linkis.workspace.filesystem.localuserrootpath=hdfs:///tmp/
    wds.linkis.workspace.filesystem.hdfsuserrootpath.prefix=hdfs:///tmp/
    wds.linkis.workspace.filesystem.hdfsuserrootpath.suffix=/linkis/

    #hadoopconfig
    #hadoop.config.dir

    ##UDF
    wds.linkis.storage.is.share.node=true
    wds.linkis.gateway.ip=linkis-gateway.sit.ihomefnt.org
    wds.linkis.gateway.port=13429


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

