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

ebs: adjust volume tagging #5525

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

BornChanger
Copy link
Contributor

@BornChanger BornChanger commented Jan 18, 2024

What problem does this PR solve?

Closes #5506

What is changed and how does it work?

Add pvc name as tag of restored volume

Code changes

  • Has Go code change
  • Has CI related scripts change

Tests

  • Unit test
  • E2E test
  • Manual test
image
  • No code

Side effects

  • Breaking backward compatibility
  • Other side effects:

Related changes

  • Need to cherry-pick to the release branch
  • Need to update the documentation

Release Notes

Please refer to Release Notes Language Style Guide before writing the release note.


Signed-off-by: BornChanger <dawn_catcher@126.com>
@BornChanger BornChanger added type/bug Something isn't working area/ebs-br labels Jan 18, 2024
@ti-chi-bot ti-chi-bot bot added the size/S label Jan 18, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3bd2bad) 61.38% compared to head (b6abb20) 59.27%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5525      +/-   ##
==========================================
- Coverage   61.38%   59.27%   -2.12%     
==========================================
  Files         234      245      +11     
  Lines       29961    33822    +3861     
==========================================
+ Hits        18391    20047    +1656     
- Misses       9737    11871    +2134     
- Partials     1833     1904      +71     
Flag Coverage Δ
e2e 17.51% <0.00%> (?)
unittest 61.39% <100.00%> (+<0.01%) ⬆️

@BornChanger
Copy link
Contributor Author

/retest

@ti-chi-bot ti-chi-bot bot added the lgtm label Jan 18, 2024
Copy link
Contributor

ti-chi-bot bot commented Jan 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: WangLe1321

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

Copy link
Contributor

ti-chi-bot bot commented Jan 18, 2024

[LGTM Timeline notifier]

Timeline:

  • 2024-01-18 09:23:25.251938514 +0000 UTC m=+434246.816236204: ☑️ agreed by WangLe1321.

@ti-chi-bot ti-chi-bot bot added the approved label Jan 18, 2024
@csuzhangxc csuzhangxc merged commit 9c48ee5 into pingcap:master Jan 18, 2024
10 of 13 checks passed
@BornChanger
Copy link
Contributor Author

/cherry-pick release-1.5

@ti-chi-bot
Copy link
Member

@BornChanger: new pull request created to branch release-1.5: #5526.

In response to this:

/cherry-pick release-1.5

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 ti-community-infra/tichi repository.

tags[PodNSTagKey] = pv.GetLabels()[label.NamespaceLabelKey]
if pv.Spec.ClaimRef != nil {
tags[PvcNameTagKey] = pv.Spec.ClaimRef.Name
tags[PvcNSTagKey] = pv.Spec.ClaimRef.Namespace
Copy link
Contributor

Choose a reason for hiding this comment

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

The code seems correct But the screenshot in the PR does NOT show the tag "kubernetes.io/created-for/pvc/namespace", but rather shows "snapshot/kubernetes.io/created-for/pvc/namespace".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File based warmup checkpoint is unavailable if the root directory isn't a PV
6 participants