gardener / machine-controller-manager-provider-azure

This repository is the out of tree implementation of the machine driver for Azure cloud provider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Handle MarketPlaceImages with no purchase plan defined as valid case

unmarshall opened this issue · comments

What happened:
While testing on dev, our assumption that marketplace images must have a plan was invalidated. For a certain VM Image, no plan existed and that needs to be supported as a valid use case. Unfortunately this caused a nil pointer dereference and caused the MCM provider azure container to crash.

What you expected to happen:
Handle the case that a marketplace image does not have plan. The VM should be created with a nil plan.

How to reproduce it (as minimally and precisely as possible):
Use a VM Image which has no plan defined.