Skip to content

Commit

Permalink
PB-7977 : Deprecating delete_backups
Browse files Browse the repository at this point in the history
- delete_backups deprecated from ClusterDeleteRequest
- delete_backups deprecated from BackupLocationDeleteRequest

Signed-off-by: Vikas Kumar <[email protected]>
  • Loading branch information
vikasit12 committed Aug 30, 2024
1 parent 0258942 commit bab77d7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Do not use directly, use `make docker-build-proto` instead
#

FROM golang:1.20
FROM golang:1.23
ENV GOPATH=/go
RUN mkdir -p portworx/px-backup-api
WORKDIR portworx/px-backup-api
Expand Down
5 changes: 4 additions & 1 deletion pkg/apis/v1/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkg/apis/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1295,6 +1295,7 @@ message ClusterDeleteRequest {
string name = 2;
// delete_backups indicates whether the backup related to cluster need to
// be deleted or retained.
// delete_backups is deprecated, not to be used.
bool delete_backups = 3;
// delete_restores indicates whether the restore related to cluster need to
// be deleted or retained.
Expand Down Expand Up @@ -1815,6 +1816,7 @@ message BackupLocationDeleteRequest {
string name = 2;
// delete_backups indicates whether the cloud backup files need to
// be deleted or retained.
// delete_backups is deprecated, not to be used.
bool delete_backups = 3;
string uid = 4;
}
Expand Down
7 changes: 4 additions & 3 deletions pkg/apis/v1/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
},
{
"name": "delete_backups",
"description": "delete_backups indicates whether the cloud backup files need to\nbe deleted or retained.",
"description": "delete_backups indicates whether the cloud backup files need to\nbe deleted or retained.\ndelete_backups is deprecated, not to be used.",
"in": "query",
"required": false,
"type": "boolean",
Expand Down Expand Up @@ -1166,7 +1166,7 @@
},
{
"name": "delete_backups",
"description": "delete_backups indicates whether the backup related to cluster need to\nbe deleted or retained.",
"description": "delete_backups indicates whether the backup related to cluster need to\nbe deleted or retained.\ndelete_backups is deprecated, not to be used.",
"in": "query",
"required": false,
"type": "boolean",
Expand Down Expand Up @@ -3295,7 +3295,8 @@
},
"retention_time": {
"type": "string",
"format": "date-time"
"format": "date-time",
"title": "this will store the timestamp, when the retention period of locked backup will be expired"
}
}
},
Expand Down

0 comments on commit bab77d7

Please sign in to comment.