New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install/kubernetes: make image digests for all components optional & configurable #22732
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also set USE_DIGEST to true in Makefile.values? That way existing behavior is preserved?
That would not preserve the existing behaviour, as
The existing behaviour in fact is, that the "core" cilium components are using/not using digests based on the above check of So the existing behaviour is kind of mixed:
Therefore I thought that consolidating all images based on |
We discussed this briefly in the community meeting and decided that we should be passing digests everywhere. There are tools like So, can you enable digests universally by default? |
@squeed - sure, I just change them to The images that are not affected by this PR have digests enabled if they are present in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this does look good to me now. But let's also wait for Casey to re-review, since he seems to have looked into this more deeply.
Seems like a recent Helm merge caused conflicts. This unfortunately means that this branch needs to be rebased. |
…configurable Signed-off-by: Rastislav Szabo <rastislav@kubermatic.com>
@gandro rebased, sorry for the delay |
Test failure is a flake (filed issue #22910), this seems good to go. |
Only Helm and the documentation are affected so we probably don't need to run the end-to-end tests. Merging. |
Signed-off-by: Rastislav Szabo rastislav@kubermatic.com
Most of the core components of Cilium already provide the options to overwrite or disable the use of image digests (
*.image.digest
&*.image.useDigest
) via Helm values. However, overwriting or disabling the digests is not easily possible for some Hubble and etcd component images (without rewriting the whole image tag, including the version). This is cumbersome for deployments with private image registries, as the digest can change when the same image is pushed to a different registry.This PR adds the
digest
anduseDigest
options for all remaining images. Since all the affected templates already use the"cilium.image"
helper, all that is needed is to move the actual digest from the*.image.tag
to the*.image.digest
. The affected digests remain hardcoded in the same file (Makefile.values
), just now in dedicated env variables.This also consolidates whether digests are used or not across the images of all components, based on the
USE_DIGESTS
variable invalues.yaml.tmpl
.