-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Copy "envFrom" from Velero server when creating maintenance jobs #8343
Conversation
ecc9c8e
to
59eda97
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8343 +/- ##
==========================================
- Coverage 58.99% 58.98% -0.01%
==========================================
Files 367 367
Lines 38847 38889 +42
==========================================
+ Hits 22918 22940 +22
- Misses 14467 14487 +20
Partials 1462 1462 ☔ View full report in Codecov by Sentry. |
This looks like a valid issue for both maintenance job and data mover pods, but by default Velero doesn't set |
@evhan |
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.
@evhan Thanks for the PR. We appreciate your contribution.
But could you also add a UT?
Sure. I'll also look at fixing the issue for the data mover pods. Would you like that in the same PR or a new one? |
All been included in the current PR will be fine. Thanks. |
5a53dbd
59eda97
to
5a53dbd
Compare
No problem. I've added the same treatment for the data mover pods and added env/envFrom to the tests to make sure they're included. Hope that looks OK. |
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.
Thank you @evhan for the contribution. CI is failing on make update
. Can please you execute make update
and update the pull request ?
Signed-off-by: Evan Hanson <[email protected]>
5a53dbd
to
293b730
Compare
Yeah, just noticed, sorry about that. Should be fixed now! |
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.
This LGTM. Thank you!
Signed-off-by: Evan Hanson <[email protected]>
293b730
to
f981dd4
Compare
Thank you for contributing to Velero!
Please add a summary of your change
When the Velero server creates a maintenance job, it copies its own
env
into the newly-created Pod spec. However, Velero's environment may be populated viaenvFrom
in addition toenv
, in which case the maintenance job may fail since it will be missing potentially-important variables.We ran into this while using the OpenStack plugin, but the issue is not specific to that provider. We worked around the problem in the meantime by moving all variables that were previously stored in a Secret into the Deployment itself.
The documentation already says:
This would appear to be covered by that, and the change is just bringing the implementation in line with the docs.
Does your change fix a particular issue?
No existing issue in GitHub from what I can see.
Please indicate you've done the following:
make new-changelog
) or comment/kind changelog-not-required
on this PR.Updated the corresponding documentation insite/content/docs/main
.