-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Fix and improve manage-offline-container-images script #10857
Fix and improve manage-offline-container-images script #10857
Conversation
|
Welcome @anders-elastisys! |
Hi @anders-elastisys. Thanks for your PR. I'm waiting for a kubernetes-sigs 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 |
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.
Minor nitpicking
/lgtm |
8e36038
to
75f15f4
Compare
@VannTen I could not find any tests for this script, so not sure. I squashed the commits into one, hence the bot detected new changes. |
Can you add general description of the new variables and why they are needed directly in the commit message please ? |
Fixes bug for retrieving images with tags containing image digests. Script now gets images from jobs and cronjobs as well. New env variable DESTINATION_REGISTRY to push to another registry instead of local registry. New env variable IMAGES_FROM_FILE to pull images listed in a file instead of getting images from a running k8s environment. New env variable REGISTRY_PORT to override port (default is 5000).
75f15f4
to
a9deb22
Compare
@VannTen PTAL |
/lgtm |
@VannTen: GitHub didn't allow me to assign the following users: mirwan. Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this: 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. |
Thanks @anders-elastisys |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anders-elastisys, yankay 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 |
…10857) Fixes bug for retrieving images with tags containing image digests. Script now gets images from jobs and cronjobs as well. New env variable DESTINATION_REGISTRY to push to another registry instead of local registry. New env variable IMAGES_FROM_FILE to pull images listed in a file instead of getting images from a running k8s environment. New env variable REGISTRY_PORT to override port (default is 5000).
…10857) Fixes bug for retrieving images with tags containing image digests. Script now gets images from jobs and cronjobs as well. New env variable DESTINATION_REGISTRY to push to another registry instead of local registry. New env variable IMAGES_FROM_FILE to pull images listed in a file instead of getting images from a running k8s environment. New env variable REGISTRY_PORT to override port (default is 5000).
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR adds some improvements to the
contrib/offline/manage-offline-container-images.sh
script. Improvements include:DESTINATION_REGISTRY
for pushing to a registry of your choice instead of the default one created by the scriptIMAGES_FROM_FILE
that can be used to read a list of images from a file (e.g.temp/images.list
created by thegenerate_list.sh
script) instead of getting images from a clusterREGISTRY_PORT
to override the local container registry to run on a different port than 5000Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: