Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support to the Kaniko warmer for referencing images by digest.
Before:
After:
❯ go run ./cmd/warmer --cache-dir ./test --image=node@sha256:91ec6cb0d47628e4c1ace1efe3835aaddb2a16a9549da4f86782bb05437c53d2 --customPlatform=linux/amd64 INFO[0000] Retrieving image manifest node@sha256:91ec6cb0d47628e4c1ace1efe3835aaddb2a16a9549da4f86782bb05437c53d2 INFO[0000] Retrieving image node@sha256:91ec6cb0d47628e4c1ace1efe3835aaddb2a16a9549da4f86782bb05437c53d2 from registry index.docker.io ❯ ls -la ./test total 680712 drwxr-xr-x 4 colin staff 128 Apr 20 12:32 . drwxr-xr-x 36 colin staff 1152 Apr 20 12:32 .. -rw-r--r-- 1 colin staff 348519424 Apr 20 12:32 sha256:91ec6cb0d47628e4c1ace1efe3835aaddb2a16a9549da4f86782bb05437c53d2 -rw-r--r-- 1 colin staff 2214 Apr 20 12:32 sha256:91ec6cb0d47628e4c1ace1efe3835aaddb2a16a9549da4f86782bb05437c53d2.json
Submitter Checklist
Not sure if this change qualifies the need for new unit tests :)
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Reviewer Notes
Release Notes
Updates the warmer to support
--image
references by digest, such as--image node@sha256:91ec6cb0d47628e4c1ace1efe3835aaddb2a16a9549da4f86782bb05437c53d2