Skip to content

KubeVirt provider should honor the explicitly selected instancetype kind #2065

Description

@adoi

The KubeVirt provider's defaultVMInstanceType function currently ignores the Kind supplied in InstancetypeMatcher and discovers the resource by name.

The lookup order is currently: Namespaced VirtualMachineInstancetype and then Cluster scoped VirtualMachineClusterInstancetype. This happens even when the provider specification explicitly contains:

instancetype:
  name: h200-worker
  kind: VirtualMachineClusterInstancetype

If both a namespaced VirtualMachineInstancetype/h200-worker and a cluster VirtualMachineClusterInstancetype/h200-worker exist, machine-controller selects the namespaced object despite the explicitly submitted cluster scoped kind

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions