Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Backup points cannot be deleted when in use #34

Merged
merged 5 commits into from
Jul 26, 2022

Conversation

Xvv-v
Copy link
Contributor

@Xvv-v Xvv-v commented Jul 25, 2022

Signed-off-by: Xvv-v xu.jingwen@99cloud.net

What type of PR is this?

/kind bug

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #8

Special notes for reviewers:

Does this PR introduced a user-facing change?


Additional documentation, usage docs, etc.:


@kubeclipper-bot
Copy link
Collaborator

@Xvv-v: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kubeclipper-bot kubeclipper-bot added kind/bug Categorizes issue or PR as related to a bug. do-not-merge/release-note-label-needed dco-signoff: yes size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 25, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2022

Codecov Report

Merging #34 (b82f826) into master (8e526ef) will decrease coverage by 0.01%.
The diff coverage is 9.09%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #34      +/-   ##
==========================================
- Coverage   11.50%   11.49%   -0.02%     
==========================================
  Files          92       92              
  Lines       14201    14217      +16     
==========================================
  Hits         1634     1634              
- Misses      12350    12366      +16     
  Partials      217      217              
Impacted Files Coverage Δ
pkg/apis/core/v1/handler.go 0.35% <0.00%> (-0.01%) ⬇️
pkg/apis/core/v1/utils.go 55.63% <22.22%> (-1.25%) ⬇️

@Xvv-v
Copy link
Contributor Author

Xvv-v commented Jul 25, 2022

/cc @x893675

@x893675
Copy link
Collaborator

x893675 commented Jul 26, 2022

@zhuzhenfan @Metrora

@@ -363,3 +364,12 @@ func getActBackupStep(c *v1.Cluster, b *v1.Backup, bp *v1.BackupPoint, pNode *v1

return actBackup.GetStep(action), nil
}

func (h *handler) getBackupPoint(backups *v1.BackupList, name string) bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update func name “existBackupPoint”

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think maybe it would be better to change it to inUsed.

@kubeclipper-bot kubeclipper-bot added dco-signoff: yes needs-rebase size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed dco-signoff: no size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 26, 2022
Signed-off-by: Xvv-v <xu.jingwen@99cloud.net>
Signed-off-by: Xvv-v <xu.jingwen@99cloud.net>
Signed-off-by: Xvv-v <xu.jingwen@99cloud.net>
Signed-off-by: Xvv-v <xu.jingwen@99cloud.net>
@kubeclipper-bot kubeclipper-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed needs-rebase size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 26, 2022
Signed-off-by: Xvv-v <xu.jingwen@99cloud.net>
@zhuzhenfan
Copy link
Contributor

/lgtm

@kubeclipper-bot kubeclipper-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 26, 2022
@kubeclipper-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 8791def003eeb1949e3880be816892966ca96696

@x893675
Copy link
Collaborator

x893675 commented Jul 26, 2022

/approve

@kubeclipper-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: x893675, Xvv-v

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeclipper-bot kubeclipper-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 26, 2022
@kubeclipper-bot kubeclipper-bot merged commit a9e193d into kubeclipper:master Jul 26, 2022
@x893675 x893675 added this to the v1.1.0 milestone Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes do-not-merge/release-note-label-needed kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backup points cannot be deleted when in use
6 participants