Add validation to CRDUpgradeSafety
preflight check to allow changing an existing required field to be optional
#915
Labels
carvel accepted
This issue should be considered for future work and that the triage process has been completed
enhancement
This issue is a feature request
Now that there is a base
CRDUpgradeSafety
preflight check in place, we can continue adding validation logic based on theCRDUpgradeSafety
preflight check proposal.This issue focuses on adding a validation to ensure that updates to an existing field are allowed when the update performed is changing it from required to optional
As a potential source of inspiration, here is how a couple of the existing validations are implemented:
kapp/pkg/kapp/crdupgradesafety/validator.go
Lines 71 to 93 in 82f2a30
kapp/pkg/kapp/crdupgradesafety/preflight.go
Lines 36 to 39 in 82f2a30
Note
It may be useful to consider a more generic check that allows for easily extending the validations that are run against updates to existing fields in a CRD schema
The text was updated successfully, but these errors were encountered: