创建ConfigMap

最近更新时间: 2019-11-02 13:04:50

根据指定的内容创建ConfigMap POST /v2/configmaps/{projectName} 请求Body

{
"name": "special-config",
"data":{
"game-config":"\nSPECIAL_LEVEL_KEY=very\nSPECIAL_TYPE_KEY=charm\nlog_level=INFO",
"HELLO":"world"
  }    
}

返回

{
  "name":"special-config",
  "projectName": "demo",
  "created_at": "2016-12-08T15:34:45.276506116+08:00",
  "userName": "admin",
  "configNum": 2,
  "data":{
    "game-config":"\nSPECIAL_LEVEL_KEY=very\nSPECIAL_TYPE_KEY=charm\nlog_level=INFO",
    "HELLO":"world"
  }
}