Pass DATAMOVER_IMAGE env var to kubevirt-datamover-controller deployment#2172
Conversation
The kubevirt-datamover-controller already supports the DATAMOVER_IMAGE env var to configure the image used for mover pods, but the OADP operator was not setting it. This caused mover pods to always use the hardcoded default image even when the controller image was overridden via unsupportedOverrides. Fixes: migtools/kubevirt-datamover-controller#53 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
WalkthroughThe changes add the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 10 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (10 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: shubham-pampattiwar The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cherry-pick oadp-1.6 |
|
@shubham-pampattiwar: once the present PR merges, I will cherry-pick it on top of DetailsIn 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 kubernetes-sigs/prow repository. |
|
/retest |
|
@shubham-pampattiwar: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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-sigs/prow repository. I understand the commands that are listed here. |
| Value: deploymentObject.Namespace, | ||
| }, | ||
| { | ||
| Name: "DATAMOVER_IMAGE", |
There was a problem hiding this comment.
Should we have KUBEVIRT_DATAMOVER_IMAGE ? to not confuse with DM ?
There was a problem hiding this comment.
The env var lives on the kubevirt-datamover-controller deployment, so DATAMOVER_IMAGE is unambiguous in that context, adding a KUBEVIRT_ prefix would be redundant. But I get your point. Happy to rename if you still prefer it though.
Summary
DATAMOVER_IMAGEenv var on the kubevirt-datamover-controller deployment so mover pods use the same resolved image as the controllerunsupportedOverrides>RELATED_IMAGEenv > defaultFixes: migtools/kubevirt-datamover-controller#53
Test plan
TestEnsureKubevirtDatamoverRequiredSpecs,TestBuildKubevirtDatamoverDeployment)DATAMOVER_IMAGEvalue matches resolved image for default, unsupportedOverrides, and env var casesunsupportedOverrides["kubevirtDatamoverControllerImageFqin"]and verify mover pods use overridden image🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
Tests