-
Notifications
You must be signed in to change notification settings - Fork 405
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
Pass labels to v1.Config during build #323
Comments
We can do this, and I agree we should. I'd also like to support image manifest annotations. I've hacked up a PoC here: main...ImJasonH:image-label Some design questions:
|
Wow, Thanks Jason! It's a nice choice to use Regarding your second point, the way how Quay works is: It adds the expiration seconds on top of lifetime_start_ts. In the case you described, even the push is tried, the lifetime_start_ts won't change anyway. That means the behavior is expected in my opinion. |
You're using
You want FWIW that change looks good to me, if we get a test :) |
Adding a test caught a bug, the system works! 🎉 |
Hi, thanks for working on this awesome project. This is very useful in our Go-centered projects.
One thing which can be nice to have is to add
Labels
to the image config. Today, some container registries have API(s) around image labels. For e.g, it is possible to add a specified label in Quay to tell the registry when this image will expire so will be cleaned up automatically. This is an awesome feature for CI images, by the way.LABEL quay.expires-after=20h
kaniko allows us to do this with a flag
--label
as describe here. I also looked at the ko code base and if I understand correctly, here is the place where we can tweak a bit to support labels as well?https://github.com/google/ko/blob/c14c08e982592bcea40a3bd95de94836bfbe40f9/pkg/build/gobuild.go#L603-L607
Do you think this is something reasonable to be added? Thanks. :)
The text was updated successfully, but these errors were encountered: