Skip to content

Commit

Permalink
handle optional, nillable path in cel expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Adnan Baruni committed Oct 24, 2024
1 parent 38b38ba commit a8ec872
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/webhook/storage_quota_webhook_configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ webhooks:
- virtualmachines
sideEffects: None
matchConditions:
- expression: oldObject.spec.advanced.bootDiskCapacity != object.spec.advanced.bootDiskCapacity
- expression: has(object.spec.advanced) && has(object.spec.advanced.bootDiskCapacity)
&& ((!has(oldObject.spec.advanced) || !has(oldObject.spec.advanced.bootDiskCapacity))
|| (has(oldObject.spec.advanced) && has(oldObject.spec.advanced.bootDiskCapacity)
&& object.spec.advanced.bootDiskCapacity != oldObject.spec.advanced.bootDiskCapacity))
name: boot-disk-change

0 comments on commit a8ec872

Please sign in to comment.