Prior to this changeset, when end users would attempt to use xpls with a package that was using v1alpha1 of the Configuration or Provider specs a panic would be returned.
Changes made that address this:
checks were added for the older spec types
these changes include recognizing the type, updating the type, as well as performing validations on the type
validationDiagnostics were updated to account for warnings instead of simply errors in order to communicate to the end user that they were using a deprecated version.
[X] Run make reviewable to ensure this PR is ready for review.
How has this code been tested
In addition to general functional testing of validations against the reported problematic repo https://github.com/upbound/platform-ref-azure, functional tests were performed to verify:
the panic no longer is returned when using v1alpha1
a warning diagnostic is returned when using v1alpha1 (see screenshot)
updates to the dependency list from up xpkg dep worked with v1alpha1
Description of your changes
Prior to this changeset, when end users would attempt to use
xpls
with a package that was using v1alpha1 of the Configuration or Provider specs a panic would be returned.Changes made that address this:
Fixes #131
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
In addition to general functional testing of validations against the reported problematic repo https://github.com/upbound/platform-ref-azure, functional tests were performed to verify:
up xpkg dep
worked with v1alpha1