Implement create k8s tenant - reuse tenant.py?
snowch opened this issue · 3 comments
snowch commented
POST /api/v1/tenant HTTP/1.1
Host: 127.0.0.1:8080
Content-Length: 595
Accept-Encoding: gzip, deflate
REMOTE_ADDR: 86.138.132.112
Accept: */*
User-Agent: python-requests/2.6.0 CPython/2.7.5 Linux/3.10.0-1127.13.1.el7.x86_64
Connection: keep-alive
X-BDS-SESSION: /api/v2/session/5a1cec10-f62e-44dc-9692-e3f52a2dcc7c
Authorization: /api/v2/session/5a1cec10-f62e-44dc-9692-e3f52a2dcc7c
{"tenant_type_info": {"map_services_to_gateway": true, "specified_namespace_name": "tenant1", "is_namespace_owner": true, "adopt_existing_namespace": false}, "tenant_type": "k8s", "features": {"ml_project": false}, "is_namespace_owner": true, "external_user_groups": [], "quota": {"memory": "", "persistent": "", "gpus": "", "cores": "", "disk": "", "tenant_storage": ""}, "label": {"name": "tenant1", "description": "tenant1"}, "k8s_cluster": "/api/v2/k8scluster/2", "specified_namespace_name": "tenant1", "map_services_to_gateway": true, "adopt_existing_namespace": false, "krb_enc_types": []}HTTP/1.1 201 Created
Access-Control-Allow-Origin: *
Content-Length: 13
Content-Type: text/plain
Date: Tue, 21 Jul 2020 14:12:02 GMT
Location: /api/v1/tenant/5
Server: HPE Ezmeral Container Platform 5.1
201 Created
Request pretty printed:
{
"tenant_type_info": {
"map_services_to_gateway": true,
"specified_namespace_name": "tenant1",
"is_namespace_owner": true,
"adopt_existing_namespace": false
},
"tenant_type": "k8s",
"features": {
"ml_project": false
},
"is_namespace_owner": true,
"external_user_groups": [],
"quota": {
"memory": "",
"persistent": "",
"gpus": "",
"cores": "",
"disk": "",
"tenant_storage": ""
},
"label": {
"name": "tenant1",
"description": "tenant1"
},
"k8s_cluster": "/api/v2/k8scluster/2",
"specified_namespace_name": "tenant1",
"map_services_to_gateway": true,
"adopt_existing_namespace": false,
"krb_enc_types": []
}
snowch commented
snowch commented
Done