Introduce dropdowns for node selector screen on affinity (#779)

* Introduce dropdowns for node selector screen on affinity

Fixes https://github.com/miniohq/engineering/issues/138

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>

* Lint

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Daniel Valdivia
2021-06-02 15:48:17 -07:00
committed by GitHub
parent c1e41e6b0a
commit 8ca6401ac0
22 changed files with 812 additions and 39 deletions

View File

@@ -2934,6 +2934,29 @@ func init() {
}
}
},
"/nodes/labels": {
"get": {
"tags": [
"OperatorAPI"
],
"summary": "List node labels",
"operationId": "ListNodeLabels",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/nodeLabels"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/policies": {
"get": {
"tags": [
@@ -5534,6 +5557,15 @@ func init() {
}
}
},
"nodeLabels": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"nodeSelectorTerm": {
"description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.",
"type": "object",
@@ -10108,6 +10140,29 @@ func init() {
}
}
},
"/nodes/labels": {
"get": {
"tags": [
"OperatorAPI"
],
"summary": "List node labels",
"operationId": "ListNodeLabels",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/nodeLabels"
}
},
"default": {
"description": "Generic error response.",
"schema": {
"$ref": "#/definitions/error"
}
}
}
}
},
"/policies": {
"get": {
"tags": [
@@ -13336,6 +13391,15 @@ func init() {
}
}
},
"nodeLabels": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
},
"nodeSelectorTerm": {
"description": "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.",
"type": "object",