-
Notifications
You must be signed in to change notification settings - Fork 489
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
br: add additional volumes to backup/restore/warmup pods #5414
br: add additional volumes to backup/restore/warmup pods #5414
Conversation
/run-pull-e2e-kind-br |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #5414 +/- ##
==========================================
- Coverage 61.60% 61.59% -0.01%
==========================================
Files 228 239 +11
Lines 28953 32828 +3875
==========================================
+ Hits 17836 20222 +2386
- Misses 9376 10745 +1369
- Partials 1741 1861 +120
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BornChanger 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 |
/pull-e2e-kind-br |
[LGTM Timeline notifier]Timeline:
|
New changes are detected. LGTM label has been removed. |
/pull-e2e-kind-br |
/run-pull-e2e-kind-br |
/pull-e2e-kind-br |
/run-pull-e2e-kind-br |
Thanks for supporting this. My 2c is to move to another PR. Since its a logically different change, than indicated in the title. |
/run-pull-e2e-kind-br |
1 similar comment
/run-pull-e2e-kind-br |
/run-pull-e2e-kind-br |
/run-pull-e2e-kind-br |
/cherry-pick release-1.5 |
@csuzhangxc: new pull request created to branch In response to this:
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. |
backup.Spec.FederalVolumeBackupPhase == v1alpha1.FederalVolumeBackupInitialize { | ||
bm.setBackupPodResourceRequirementsEmpty(&job.Spec.Template) | ||
// for volume backup initializing job, set deadline of the job in case it blocks GC and pd schedule indefinitely | ||
job.Spec.ActiveDeadlineSeconds = pointer.Int64(int64(volumeBackupInitJobMaxActiveSeconds)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@WangLe1321 this gave me compile error pkg/backup/backup/backup_manager.go:864:44: undefined: pointer.Int64
should we use pointer.Int64Ptr instead?
What problem does this PR solve?
Add additional volumes and volume mounts to backup/restore/warmup pods, then we can support users to mount
configMap
these pods.Closes #5404
Add deadline to backup-init job of 10 minutes, in case it blocks gc and pd schedule indefinitely.
Closes #5387
Closes #5409
What is changed and how does it work?
Code changes
Tests
I add
additionalVolumes
andadditionalVolumeMounts
to theVolumeBackup
I see the volume and volume mount appears in the backup and backup-init pod
for deadline of backup init job, I see the corresponding fields appearing in the job
activeDeadlineSeconds: 600
and the job failed due to the deadline
Side effects
Related changes
Release Notes
Please refer to Release Notes Language Style Guide before writing the release note.