Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle zones that are being deleted (#663)
This patch handles Zones that are being deleted. We don't want to allow new VMs to be created in zones that are being deleted. - If VM deployment specifies a zone that is being deleted by SSO user, validation webhook will reject the creation. - If VM deployment specifies a zone that is being deleted by admin, validation webhook will allow the creation. - If VM deployment specifies a valid zone at create time, zone got deletionTimestamp later, still place it in the zone. - For placement, filter out the to be deleted zones so we don't have it as a candidate.
- Loading branch information