File tree Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Expand file tree Collapse file tree 4 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,7 @@ func (controller *FederationController) deleteFATEExchange(c *gin.Context) {
494
494
// @Param enable_persistence query bool true "choose if use the persistent volume"
495
495
// @Param storage_class query string true "provide the name of StorageClass"
496
496
// @Param enable_psp query bool true "choose if enable the podSecurityPolicy"
497
+ // @Param fateflow_gpu_num query int true "number of gpu to assign to fateflow pod, default 0"
497
498
// @Success 200 {object} GeneralResponse{data=string} "Success, the data field is the yaml content"
498
499
// @Failure 401 {object} GeneralResponse "Unauthorized operation"
499
500
// @Failure 500 {object} GeneralResponse{code=int} "Internal server error"
Original file line number Diff line number Diff line change @@ -1643,6 +1643,13 @@ const docTemplate = `{
1643
1643
"name": "enable_psp",
1644
1644
"in": "query",
1645
1645
"required": true
1646
+ },
1647
+ {
1648
+ "type": "integer",
1649
+ "description": "number of gpu to assign to fateflow pod, default 0",
1650
+ "name": "fateflow_gpu_num",
1651
+ "in": "query",
1652
+ "required": true
1646
1653
}
1647
1654
],
1648
1655
"responses": {
@@ -5098,6 +5105,9 @@ const docTemplate = `{
5098
5105
"externalSpark": {
5099
5106
"$ref": "#/definitions/service.ExternalSpark"
5100
5107
},
5108
+ "fateflow_gpu_num": {
5109
+ "type": "integer"
5110
+ },
5101
5111
"federation_uuid": {
5102
5112
"type": "string"
5103
5113
},
@@ -5359,6 +5369,9 @@ const docTemplate = `{
5359
5369
"labels": {
5360
5370
"$ref": "#/definitions/valueobject.Labels"
5361
5371
},
5372
+ "less_privileged": {
5373
+ "type": "boolean"
5374
+ },
5362
5375
"name": {
5363
5376
"description": "optional",
5364
5377
"type": "string"
Original file line number Diff line number Diff line change 1635
1635
"name" : " enable_psp" ,
1636
1636
"in" : " query" ,
1637
1637
"required" : true
1638
+ },
1639
+ {
1640
+ "type" : " integer" ,
1641
+ "description" : " number of gpu to assign to fateflow pod, default 0" ,
1642
+ "name" : " fateflow_gpu_num" ,
1643
+ "in" : " query" ,
1644
+ "required" : true
1638
1645
}
1639
1646
],
1640
1647
"responses" : {
5090
5097
"externalSpark" : {
5091
5098
"$ref" : " #/definitions/service.ExternalSpark"
5092
5099
},
5100
+ "fateflow_gpu_num" : {
5101
+ "type" : " integer"
5102
+ },
5093
5103
"federation_uuid" : {
5094
5104
"type" : " string"
5095
5105
},
5351
5361
"labels" : {
5352
5362
"$ref" : " #/definitions/valueobject.Labels"
5353
5363
},
5364
+ "less_privileged" : {
5365
+ "type" : " boolean"
5366
+ },
5354
5367
"name" : {
5355
5368
"description" : " optional" ,
5356
5369
"type" : " string"
Original file line number Diff line number Diff line change @@ -700,6 +700,8 @@ definitions:
700
700
$ref : ' #/definitions/service.ExternalPulsar'
701
701
externalSpark :
702
702
$ref : ' #/definitions/service.ExternalSpark'
703
+ fateflow_gpu_num :
704
+ type : integer
703
705
federation_uuid :
704
706
type : string
705
707
name :
@@ -876,6 +878,8 @@ definitions:
876
878
type : string
877
879
labels :
878
880
$ref : ' #/definitions/valueobject.Labels'
881
+ less_privileged :
882
+ type : boolean
879
883
name :
880
884
description : optional
881
885
type : string
@@ -2427,6 +2431,11 @@ paths:
2427
2431
name : enable_psp
2428
2432
required : true
2429
2433
type : boolean
2434
+ - description : number of gpu to assign to fateflow pod, default 0
2435
+ in : query
2436
+ name : fateflow_gpu_num
2437
+ required : true
2438
+ type : integer
2430
2439
produces :
2431
2440
- application/json
2432
2441
responses :
You can’t perform that action at this time.
0 commit comments