-
Notifications
You must be signed in to change notification settings - Fork 253
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
Reproducible/deterministic bundles #2133
Conversation
Given the same set of files in any order this allows the layers to be added to the image manifest in the deterministic order as they are now sorted according to their sha256 digest.
Hi @zregvart. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This allows specifying the created time in the image config instead of using the current time. If `--ctime` is not provided the current time is used. `--ctime` supports date, date and time in UTC timezone and RFC3339 formatted date that can include the timezone.
4ec8aa4
to
6089ae5
Compare
/lgtm |
can it be the default? do we need a flag for different behavior? |
@chmouel do you mean set the created time to a predefined constant (say 1970-01-01?) instead of current time? Should be easy to do, I'm guessing there was a reason to setting it to the current time previously and I didn't want to change that. |
I think I tend to agree with @chmouel, we could have it enabled by default. |
I created a followup in #2135 |
Changes
Sorts the bundle image layers according to the digest of the layer's content and adds the
--ctime
parameter totkn bundle push
to allow setting the created time in the bundle image config.Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
See the contribution guide
for more details.
Release Notes
Fixes #2132