Add validation to CRDUpgradeSafety
preflight check to prevent removal of existing fields
#912
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 no existing fields are removed from a particular version of a CRD's schema during an upgrade operation.
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
The text was updated successfully, but these errors were encountered: