You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Helm: Do not allow specifying Dagger version #8301
Now that we publish a new Helm version whenever there is a new Dagger version - in other words the chart version and the Dagger version are moving in lock-step - we should not allow specifying different versions for Dagger.
We should still support setting custom images in case someone wants to use a specific image variant. We should add a comment warning which explains why the two versions need to be kept in lock-step.
So, just for my understanding for the future, let's say I have a bunch of CI processes running on engine 0.X.X., If I upgrade the Helm chart, it could break the processes. This is because Dagger is still considered pre-production (per SemVer) and the API can have breaking changes (as you noted will happen in 0.13.0 in our Discord chat @gerhard), so upgrading the Helm chart must be done with caution and understanding which Engine versions will have breaking changes is very important.
Once Dagger is 1.0.0, only major version changes (i.e. 2.x.x, 3.x.x, 4.x.x etc.) will need external work done to upgrade the Helm chart.
Now that we publish a new Helm version whenever there is a new Dagger version - in other words the chart version and the Dagger version are moving in lock-step - we should not allow specifying different versions for Dagger.
@gerhard@matipan maybe we can still support this by adding a bit of logic to our helm chart about supported verisons? Seems like using both the fail 1 and semver [2] sprig package we could prevent newer helm charts to set engine versions older than whatever semver def we want
That would work if the appVersion was semver, but it could be any image tag, including:
be158d163f0576d998abe399e6612381dc8ef8a8 (a specific git sha)
main (meaning latest dev build)
main-wolfi (a dev variant)
v0.12.7-gpu (this looks like semver, but it's not)
Since the appVersion == version, we should instead expose the entire image ref, rather than use the appVersion for the default engine.image.tag and, potentially, allow for situations where the engine.image.repository value is incompatible with the engine.image.tag value.
I am just finishing off the PR, will submit so that we can discuss further on the proposed changes.
We could consider tagging all images with semver tags going forward, similar to how we already do for cli/engines. All the groundwork is set in #7858, we'd just need to plumb it into the engine publishing logic.
Probably out of scope for v0.13.0, but maybe to consider for later.
Activity
smolinari commentedon Sep 2, 2024
So, just for my understanding for the future, let's say I have a bunch of CI processes running on engine 0.X.X., If I upgrade the Helm chart, it could break the processes. This is because Dagger is still considered pre-production (per SemVer) and the API can have breaking changes (as you noted will happen in 0.13.0 in our Discord chat @gerhard), so upgrading the Helm chart must be done with caution and understanding which Engine versions will have breaking changes is very important.
Once Dagger is 1.0.0, only major version changes (i.e. 2.x.x, 3.x.x, 4.x.x etc.) will need external work done to upgrade the Helm chart.
Is that a correct take?
Scott
gerhard commentedon Sep 2, 2024
Yes, that is correct.
Before
1.0, minor versions can be considered major ones. We tend to introduce the most breaking changes in minors, e.g.:v0.12.0https://github.com/dagger/dagger/blob/main/CHANGELOG.md#v0120---2024-07-12v0.11.0https://github.com/dagger/dagger/blob/main/CHANGELOG.md#v0110---2024-04-03There are also cases when we don't, e.g.:
v0.10.0https://github.com/dagger/dagger/blob/main/CHANGELOG.md#v0100---2024-02-27The truth is that we also introduce smaller breaking changes in patch versions (search for breaking): https://github.com/dagger/dagger/blob/main/CHANGELOG.md
In conclusion: always look at the release notes before upgrading the Helm chart version. And always pin!
cc @jedevc
marcosnils commentedon Sep 2, 2024
@gerhard @matipan maybe we can still support this by adding a bit of logic to our helm chart about supported verisons? Seems like using both the fail 1 and semver [2] sprig package we could prevent newer helm charts to set engine versions older than whatever semver def we want
[2] https://masterminds.github.io/sprig/semver.html
thoughts?
gerhard commentedon Sep 5, 2024
That would work if the
appVersionwas semver, but it could be any image tag, including:be158d163f0576d998abe399e6612381dc8ef8a8(a specific git sha)main(meaning latest dev build)main-wolfi(a dev variant)v0.12.7-gpu(this looks like semver, but it's not)Since the
appVersion == version, we should instead expose the entire image ref, rather than use theappVersionfor the defaultengine.image.tagand, potentially, allow for situations where theengine.image.repositoryvalue is incompatible with theengine.image.tagvalue.I am just finishing off the PR, will submit so that we can discuss further on the proposed changes.
jedevc commentedon Sep 5, 2024
We could consider tagging all images with semver tags going forward, similar to how we already do for cli/engines. All the groundwork is set in #7858, we'd just need to plumb it into the engine publishing logic.
Probably out of scope for v0.13.0, but maybe to consider for later.
gerhard commentedon Sep 5, 2024
Yes, I remember us talking about it. When we implement that, we should definitely revisit this.
💥 Breaking(helm): Remove appVersion - this is now the chart version (d…