Skip to content
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

Supply digest of images that are selected by policy #87

Open
Tracked by #4245
squaremo opened this issue Jan 18, 2021 · 1 comment · May be fixed by #368
Open
Tracked by #4245

Supply digest of images that are selected by policy #87

squaremo opened this issue Jan 18, 2021 · 1 comment · May be fixed by #368
Labels
enhancement New feature or request

Comments

@squaremo
Copy link
Member

You sometimes want to use the digest of an image, rather than the tag; e.g., if you are interested in exactly reproducible builds.

For that reason, it'd be useful to supply the digest of an image selected by a policy object, as well as its tag, in the status. The digest appears to be available via https://godoc.org/github.com/google/go-containerregistry/pkg/v1/remote#Head (but if not, Get in the same place). This has to be done per tags, so while we don't need metadata for sorting/selecting, the policy controller can just fetch it for those images it selects.

@barrydobson
Copy link

I'd like to see this feature added too.
My use case would be that when using a tool such as Bazel to release from mono-repos, it's not really possible to use semver, as it would cause all of the services to be deployed every time a change was made. Instead I want to use timestamps as image tags, and the sha of the image in the deployments. This way I can use the alphabetical rule in the image policy, and set the sha. If the sha hasn't changed, Kubernetes won't deploy the app.

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 a pull request may close this issue.

3 participants