Skip to content

Add kubevirt driver support to molecule.json#4492

Merged
cidrblock merged 8 commits intoansible:mainfrom
gokberkgunduzz:custom-25.1.0
Aug 16, 2025
Merged

Add kubevirt driver support to molecule.json#4492
cidrblock merged 8 commits intoansible:mainfrom
gokberkgunduzz:custom-25.1.0

Conversation

@gokberkgunduzz
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:
This PR adds "kubevirt" to the list of supported drivers in molecule.json, allowing Molecule to properly validate and accept driver.name: kubevirt in scenario configurations.

This is required for users who wish to use the molecule-kubevirt driver (e.g., for testing Ansible roles in KubeVirt-based clusters). Without this addition, Molecule throws an error when parsing molecule.yml.

Background context:

  • Molecule 25.x+ dropped legacy driver autodetection and enforces declared drivers from molecule.json
  • This patch is based on molecule==25.1.0
  • Driver is defined externally in the molecule-kubevirt plugin repo (see related PR)

Release note:

Add "kubevirt" to allowed drivers in molecule.json to support external molecule-kubevirt driver

@gokberkgunduzz
Copy link
Copy Markdown
Contributor Author

Hi team — this PR is failing the label check, but I can't apply labels as a contributor.
Could you please add the enhancement label so the workflow can pass?

Thanks!

@cidrblock cidrblock merged commit 2c79d8e into ansible:main Aug 16, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants