Added create namespace API (#808)

This commit is contained in:
Alex
2021-06-14 12:04:57 -05:00
committed by GitHub
parent 4d62fe1638
commit 31d18efa9a
11 changed files with 763 additions and 1 deletions

View File

@@ -2440,6 +2440,36 @@ func init() {
}
}
},
"/namespace": {
"post": {
"tags": [
"AdminAPI"
],
"summary": "Creates a new Namespace with given information",
"operationId": "CreateNamespace",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/namespace"
}
}
],
"responses": {
"201": {
"description": "A successful response."
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/resourcequotas/{resource-quota-name}": {
"get": {
"tags": [
@@ -5645,6 +5675,17 @@ func init() {
}
}
},
"namespace": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
},
"nodeLabels": {
"type": "object",
"additionalProperties": {
@@ -9764,6 +9805,36 @@ func init() {
}
}
},
"/namespace": {
"post": {
"tags": [
"AdminAPI"
],
"summary": "Creates a new Namespace with given information",
"operationId": "CreateNamespace",
"parameters": [
{
"name": "body",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/namespace"
}
}
],
"responses": {
"201": {
"description": "A successful response."
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/namespaces/{namespace}/resourcequotas/{resource-quota-name}": {
"get": {
"tags": [
@@ -13597,6 +13668,17 @@ func init() {
}
}
},
"namespace": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
}
}
},
"nodeLabels": {
"type": "object",
"additionalProperties": {