Closed mikemilano closed 2 years ago
@pirog I added you to the ticket for the decision points:
Do you prefer the version check bypass be indicated by a designated config var, or simply the omission of config.supported
If it's a go, then we just need to prioritize and schedule it.
@mikemilano so i think we want an explicit key to disabled the supported check. The reason why i think this would be better than omission is:
supported
the default is set to ['custom']
. It's unclear to me whether changing this default would be a breaking API change or not so probably best to avoid mucking with it altogether. I queued this up as part of our Alpha psh sprint. I also think we should remove supported
for all the platform.sh services that currently define it primarily to avoid future confusion.
What do you think?
@mikemilano alright this is merged into master now!
Currently,
lando start
/lando rebuild
will fail, warning the user if a service version defined does not exist in theservice.config.supported
array.The dependency on valid versions maintained in Lando for images that are maintained by a 3rd party introduce dependencies that may justify omitting the version restriction altogether.
The concern was introduced with the images maintained by platform.sh as keeping the supported versions list in sync could become cumbersome and error prone.
This dependency between the 2 contexts impacts Platform.sh and Lando in the following ways:
The consequences to allowing supported versions to be based on if the image or tag exist are:
Getting rid of supported versions is not an option, but it does make sense to support the case to bypass the version restriction for images maintained by 3rd parties in partnership with Lando. (i.e. upstream actually plans and accounts for the downstream integration)
Proposal
Allow the omission of
config.supported
in service definitions.Services without
config.supported
items will be handled as follows:Alternatively, we could add an explicit key to bypass version check instead of relying on the omission of values.