Skip to content

Conversation

NickLarsenNZ
Copy link
Member

@NickLarsenNZ NickLarsenNZ commented Jan 30, 2025

Add the dynamic checksum/config annotation back in.
This is supposed to be used for rolling out the Deployment when the ConfigMap content changes.

Previously, this annotation only appeared when .Values.podAnnotations was set.

It was only discovered broken by adding podAnnotations and seeing that the include context was invalid, leading to this error:

Error: template: trino-operator/templates/deployment.yaml:20:28: executing "trino-operator/templates/deployment.yaml" at <include (print $.Template.BasePath "/configmap.yaml") .>: error calling include: template: trino-operator/templates/configmap.yaml:4:10: executing "trino-operator/templates/configmap.yaml" at <.Files.Glob>: nil pointer evaluating interface {}.Glob

Note, this was always broken since inception in #7.

Add the dynamic `checksum/config` annotation back in.

Previously, this annotation only appeared when `.Values.podAnnotations` was set.

It was only discovered broken by adding podAnnotations and seeing that the `include` context was invalid, leading to this error:

```
Error: template: trino-operator/templates/deployment.yaml:20:28: executing "trino-operator/templates/deployment.yaml" at <include (print $.Template.BasePath "/configmap.yaml") .>: error calling include: template: trino-operator/templates/configmap.yaml:4:10: executing "trino-operator/templates/configmap.yaml" at <.Files.Glob>: nil pointer evaluating interface {}.Glob
```

Note, this was always broken since inception in #7.
@NickLarsenNZ NickLarsenNZ self-assigned this Jan 30, 2025
@NickLarsenNZ NickLarsenNZ added scheduled-for/25.3.0 release-note/action-required Denotes a PR that introduces potentially breaking changes that require user action. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note/action-required Denotes a PR that introduces potentially breaking changes that require user action. labels Jan 30, 2025
@NickLarsenNZ
Copy link
Member Author

Release Note

Operators deployed by Helm will contain an extra pod annotation: checksum/config.

Copy link
Member

@Techassi Techassi left a comment

Choose a reason for hiding this comment

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

Approved as is.

I don't have any strong opinions on namespacing the checksum field.

@NickLarsenNZ NickLarsenNZ added this pull request to the merge queue Feb 3, 2025
Merged via the queue into main with commit d64a1bb Feb 3, 2025
2 checks passed
@NickLarsenNZ NickLarsenNZ deleted the fix/annotations branch February 3, 2025 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/25.3.0 release-note Denotes a PR that will be considered when it comes time to generate release notes.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants