apiVersion: v1
kind: ConfigMap
metadata:
  name: oracle-service-broker
data:
  app.conf: |+
    appname = oracle-service-broker
    httpport = 8000
    runmode = dev
    autorender = false
    copyrequestbody = true
    EnableDocs = true

    include "oracle-service-broker.conf"
  oracle-service-broker.conf: |+
    [oracle-service-broker]
    settings.path="conf/settings.yaml"

    [etcd]
    endpoints="http://127.0.0.1:2379"
    # For multi endpoints. endpoints="http://192.168.86.131:2379,http://192.168.86.132:2379,http://192.168.86.133:2379"

    [auth]
    username="suyan"
    password="12345678"
  settings.yaml:  |+
    # This file should not be used in deployed environments. Instead, set
    # the SETTINGS_PATH environment variable to point to a configuration
    # file that contains these settings.

    services:
    - name: oracle-service
      id: 3102c871-1044-4716-a7dc-9ded2e028279
      description: Oracle service for application development and testing
      bindable: true
      tags:
        - oracle
        - relational
      metadata:
        providerDisplayName: experimental
        imageUrl: http://orvjyath1.bkt.clouddn.com/oracle.jpg
        # serviceType: database cache message-queue
        serviceType: database
        longDescription: |
          # Oracle Service Broker Description

          用于对接外部Oracle集群服务,遵守ServiceBroker API规范.
          [Open Service Broker](https://www.openservicebrokerapi.org/)


          更多信息,
          [请访问 GitHub 上 Service Catalog 项目](https://github.com/kubernetes-incubator/service-catalog).
        basicInformation: |
          # Oracle Service Broker Basic Information

          用于对接外部Oracle集群服务,遵守ServiceBroker API规范.
          [Open Service Broker](https://www.openservicebrokerapi.org/)


          更多信息,
          [请访问 GitHub 上 Service Catalog 项目](https://github.com/kubernetes-incubator/service-catalog).
        configParam: |
          ## 配置参数描述
          ```
          service_name: 服务的名字
          plan_name: 套餐的名字
          connect_uri: 数据库链接字符串
          ```
        howToUse: |
          ## 参数使用说明
          ```
          service_name: oracle-service
          plan_name: default
          connect_uri: system/123456@192.168.250.37:1521/orcl
          ```
      plans:
      - name: default
        id: 2651da21-dc16-4c1a-ba6c-1c681a3dcdc1
        description: Shared Oracle Server
        free: true
        bindable: true
        metadata:
         costs:
         - amount:
             value: 100.0
           unit: M
         bullets:
           - Shared Oracle server
           - free storage

