Skip to content

💥 Breaking(helm): Remove appVersion - this is now the chart version - #8348

Merged
gerhard merged 7 commits into
dagger:mainfrom
gerhard:helm-disallow-setting-different-image-version
Sep 9, 2024
Merged

gerhard merged 7 commits into
dagger:mainfrom
gerhard:helm-disallow-setting-different-image-version

Conversation

@gerhard

@gerhard gerhard commented Sep 5, 2024 •

Copy link
Copy Markdown
Contributor

Now that the chart version moves in lock-step with the app version, we want to remove the app version so that we minimize the change for incompatibilities, as was the case in #8301.

The options are:
A. You want a custom app image. You need to ensure that the chart is compatible with this image.
B. You use the default image. We are responsible for ensuring compatibility with the chart.

The third option is to use this YAML as inspiration, and manage your own raw manifests, which give you full control, and also responsibility.

Fixes #8301

@gerhard gerhard added this to the v0.13.0 milestone Sep 5, 2024
Gerhard Lazu added 4 commits September 5, 2024 18:32
Now that the chart version moves in lock-step with the app version, we
want to remove the app version so that we minimize the change for
incompatibilities, as was the case in
#8301.

The options are:
A. You want a custom app image, and then you are responsible for making
  sure that the chart is compatible with your image OR
B. You use the default image which we ensure that is compatible with the
  chart we publish.

The third option is to use this YAML as inspiration, and manage your own
raw manifests, which give you full control & responsibility.

Fixes #8301

Signed-off-by: Gerhard Lazu <[email protected]>
Also added bunch of extra comments & fixed a link.

Signed-off-by: Gerhard Lazu <[email protected]>
If we are checking readiness every 15 seconds, we should timeout after
14 seconds at most.

Signed-off-by: Gerhard Lazu <[email protected]>
Now that we have settled #8135,
let's use it.

Signed-off-by: Gerhard Lazu <[email protected]>
@jedevc

jedevc commented Sep 6, 2024

Copy link
Copy Markdown
Contributor

Pushed a commit to remove appVersion from the ci setVersion task as well.

LGTM 🎉

containers:
- name: dagger-engine
image: {{ .Values.engine.image.repository }}:{{ if .Values.engine.image.tag }}{{ .Values.engine.image.tag }}{{ else }}v{{ .Chart.AppVersion }}{{ end }}
image: {{ if .Values.engine.image.ref }}{{ .Values.engine.image.ref }}{{ else }}registry.dagger.io/engine:v{{ .Chart.Version }}{{ end }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May also be worth release-noting this change as well, from tag to ref?

Comment thread helm/dagger/values.yaml
readinessProbeSettings:
initialDelaySeconds: 5
timeoutSeconds: 30
timeoutSeconds: 14

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👀 14 seconds?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@gerhard

gerhard commented Sep 9, 2024

Copy link
Copy Markdown
Contributor Author

Can I get your 👀 on this @matipan @marcosnils ?

- -exc
- |-
echo '{ version }' | dagger query
dagger core version

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this comment from two weeks ago we mentioned using dagger query instead of dagger core because we did not consider dagger core to be stable. Has that changed in this past two weeks?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread helm/dagger/values.yaml
# You may want to remove it in your deployments. FTR: https://github.com/dagger/dagger/pull/7395
# "--oci-max-parallelism num-cpu" is kept as the default behaviour so that we don't surprise users.
# You may want to remove it in your deployments. FTR: https://github.com/dagger/dagger/pull/7395
args:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we are doing a breaking change, should we bite the bullet and remove the default --oci-max-parallelism setting we have here? We have been running without it for a while now

cc @gerhard @jedevc

@gerhard gerhard Sep 9, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, we most definitely should!

Want to keep it as a follow-up PR, so that we keep this one self-contained.

Our linting needs more than 5m.

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard

gerhard commented Sep 9, 2024

Copy link
Copy Markdown
Contributor Author

Merging since the only failing check is a legitimate failure:

Addressing in a follow-up. Bumping Go to v1.23.1 should be fix it.

@gerhard
gerhard merged commit e1f52fc into dagger:main Sep 9, 2024
@gerhard
gerhard deleted the helm-disallow-setting-different-image-version branch September 9, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Helm: Do not allow specifying Dagger version

4 participants