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: The backup name is not the same as the backup file name #331

Merged
merged 2 commits into from
Nov 3, 2022
Merged

Conversation

Metrora
Copy link
Contributor

@Metrora Metrora commented Nov 3, 2022

Signed-off-by: Liucw liu.chuwei@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 #328

Special notes for reviewers:

Does this PR introduced a user-facing change?

None

Additional documentation, usage docs, etc.:


@zhuzhenfan @x893675

Signed-off-by: Liucw <liu.chuwei@99cloud.net>
@kubeclipper-bot kubeclipper-bot added kind/bug Categorizes issue or PR as related to a bug. release-note-none dco-signoff: yes size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 3, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #331 (d032d3e) into master (36da26a) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #331   +/-   ##
=======================================
  Coverage   12.96%   12.96%           
=======================================
  Files         102      102           
  Lines       15647    15647           
=======================================
  Hits         2028     2028           
  Misses      13376    13376           
  Partials      243      243           
Impacted Files Coverage Δ
pkg/apis/core/v1/handler.go 0.31% <0.00%> (ø)

@@ -1171,7 +1171,7 @@ func (h *handler) CreateBackup(request *restful.Request, response *restful.Respo
randNum := r.String(6)
backup.Name = fmt.Sprintf("%s-%s-%s", c.Name, backup.Name, randNum)
backup.Status.KubernetesVersion = c.KubernetesVersion
backup.Status.FileName = fmt.Sprintf("%s-%s", c.Name, backup.Name)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe need deal with cornBackup too

Signed-off-by: Liucw <liu.chuwei@99cloud.net>
@zhuzhenfan
Copy link
Contributor

/lgtm

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

LGTM label has been added.

Git tree hash: a87ca1198096f138d40b0d75a3d9ee5a4c371e47

@x893675
Copy link
Collaborator

x893675 commented Nov 3, 2022

/approve

@kubeclipper-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Metrora, x893675

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 Nov 3, 2022
@kubeclipper-bot kubeclipper-bot merged commit 9432332 into kubeclipper:master Nov 3, 2022
@Metrora Metrora deleted the dev branch November 3, 2022 08:23
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 kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note-none size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The backup name is not the same as the backup file name
6 participants