Skip to content

Commit 0a00541

Browse files
CR-15677 (#187)
* [ server/application/application_rollout_rollback.go ]: added ability to rollback rollout * [ application_rollout_rollback.go ]: updated returned value of newRolloutRevision * fix golint issues
1 parent 10e9eba commit 0a00541

File tree

8 files changed

+1252
-201
lines changed

8 files changed

+1252
-201
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.4.15-cap-CR-15658-sync-result-message
1+
2.4.15-cap-CR-15677-rollout-rollback

assets/swagger.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,45 @@
15021502
}
15031503
}
15041504
},
1505+
"/api/v1/applications/{name}/rollout-rollback": {
1506+
"post": {
1507+
"tags": [
1508+
"ApplicationService"
1509+
],
1510+
"summary": "Rollback application rollout",
1511+
"operationId": "ApplicationService_RollbackApplicationRollout",
1512+
"parameters": [
1513+
{
1514+
"type": "string",
1515+
"name": "name",
1516+
"in": "path",
1517+
"required": true
1518+
},
1519+
{
1520+
"name": "body",
1521+
"in": "body",
1522+
"required": true,
1523+
"schema": {
1524+
"$ref": "#/definitions/applicationApplicationRolloutRollbackRequest"
1525+
}
1526+
}
1527+
],
1528+
"responses": {
1529+
"200": {
1530+
"description": "A successful response.",
1531+
"schema": {
1532+
"$ref": "#/definitions/applicationApplicationRolloutRollbackResponse"
1533+
}
1534+
},
1535+
"default": {
1536+
"description": "An unexpected error response.",
1537+
"schema": {
1538+
"$ref": "#/definitions/runtimeError"
1539+
}
1540+
}
1541+
}
1542+
}
1543+
},
15051544
"/api/v1/applications/{name}/spec": {
15061545
"put": {
15071546
"tags": [
@@ -3678,6 +3717,36 @@
36783717
}
36793718
}
36803719
},
3720+
"applicationApplicationRolloutRollbackRequest": {
3721+
"type": "object",
3722+
"properties": {
3723+
"name": {
3724+
"type": "string"
3725+
},
3726+
"rolloutName": {
3727+
"type": "string"
3728+
},
3729+
"rolloutNamespace": {
3730+
"type": "string"
3731+
},
3732+
"rolloutRevision": {
3733+
"type": "string",
3734+
"format": "int64"
3735+
}
3736+
}
3737+
},
3738+
"applicationApplicationRolloutRollbackResponse": {
3739+
"type": "object",
3740+
"properties": {
3741+
"newRevision": {
3742+
"type": "string",
3743+
"format": "int64"
3744+
},
3745+
"rollout": {
3746+
"type": "string"
3747+
}
3748+
}
3749+
},
36813750
"applicationApplicationSyncRequest": {
36823751
"type": "object",
36833752
"title": "ApplicationSyncRequest is a request to apply the config state to live state",

0 commit comments

Comments
 (0)