k8snetworkplumbingwg / kubemacpool

Apache License 2.0
32 stars 33 forks source link

pool-manager: Prevent panic if VM template is nil #431

Closed RamLavi closed 2 months ago

RamLavi commented 2 months ago

What this PR does / why we need it: This PR fixes a panic that occurs if a VM is created/updated with no template. Although this field is mandatory, kubemacpool should not panic if it happens.

Special notes for your reviewer:

Release note:

Fix panic over nil template
kubevirt-bot commented 2 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qinqon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/k8snetworkplumbingwg/kubemacpool/blob/main/OWNERS)~~ [qinqon] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment