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

testsys: Fix incorrect migration starting image for VMware testing #2804

Merged
merged 1 commit into from
Feb 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/testsys/src/vmware_k8s.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ impl CrdCreator for VmwareK8sCreator {
/// Use standard naming conventions to predict the starting OVA.
async fn starting_image_id(&self, crd_input: &CrdInput) -> Result<String> {
Ok(format!(
"bottlerocket-{}-{}-{}",
"bottlerocket-{}-{}-{}.ova",
crd_input.variant,
crd_input.arch,
crd_input
Expand Down Expand Up @@ -190,7 +190,7 @@ impl CrdCreator for VmwareK8sCreator {

let suffix: String = repeat_with(fastrand::lowercase).take(4).collect();
let vsphere_vm_crd = VSphereVmConfig::builder()
.ova_name(self.image_id(bottlerocket_input.crd_input)?)
.ova_name(bottlerocket_input.image_id)
.tuf_repo(bottlerocket_input.crd_input.tuf_repo_config().context(
error::InvalidSnafu {
what: "TUF repo information is required for Bottlerocket vSphere VM creation.",
Expand Down