Skip to content

feat(chart): allow pinning the operator image by digest - #2280

Merged
csatib02 merged 1 commit into
kube-logging:masterfrom
eumel8:feat/chart-sha-1
Jul 28, 2026
Merged

feat(chart): allow pinning the operator image by digest#2280
csatib02 merged 1 commit into
kube-logging:masterfrom
eumel8:feat/chart-sha-1

Conversation

@eumel8

@eumel8 eumel8 commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Description

In Operator Helm Chart the image tag of the deployment is set to the app version or can be set to a tag, but never to a sha256 checksum, because the different syntax between <repo>:<tag> and <repo>@<sha256:tag>.

Let's define an optional new Chart value where the user can a sha tag as image version. Sometimes we want to test pre-versions or user use also sha tag as security feature to get a valid image.

@csatib02
csatib02 requested a review from Copilot July 24, 2026 14:26
@csatib02 csatib02 added the enhancement New feature or request label Jul 24, 2026

Copilot AI left a comment

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.

Pull request overview

Adds support in the Helm chart to pin the logging-operator container image by digest (repo@sha256:...) instead of only by tag (repo:tag), enabling deterministic/secure image references and testing pre-release images.

Changes:

  • Introduces a new optional image version override intended for digest-based references.
  • Updates the Deployment template to render image: repo@digest when the digest override is provided, otherwise keeps repo:tag behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
charts/logging-operator/values.yaml Documents the new image digest override value under image:.
charts/logging-operator/templates/deployment.yaml Uses digest-based image reference when the new value is set; falls back to tag/appVersion otherwise.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread charts/logging-operator/templates/deployment.yaml Outdated
Comment thread charts/logging-operator/values.yaml Outdated
@csatib02 csatib02 changed the title feat(chart): add optional sha tag as operator image version feat(chart): allow pinning the operator image by digest Jul 28, 2026
The deployment template only supported `<repo>:<tag>`, so the image
could not be pinned to a sha256 digest. Add an optional `image.digest`
value that switches the reference to `<repo>@<digest>` when set.

Signed-off-by: Frank Kloeker <frank.kloeker@telekom.de>
Signed-off-by: Bence Csati <bence.csati@axoflow.com>
@csatib02
csatib02 merged commit 54952fe into kube-logging:master Jul 28, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants