-
Notifications
You must be signed in to change notification settings - Fork 137
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
Move to path.Join for repo + image_name: #607
Move to path.Join for repo + image_name: #607
Conversation
Codecov Report
@@ Coverage Diff @@
## main #607 +/- ##
=======================================
Coverage 45.86% 45.86%
=======================================
Files 56 56
Lines 3268 3268
=======================================
Hits 1499 1499
Misses 1686 1686
Partials 83 83
Continue to review full report at Codecov.
|
29fb85d
to
21a4978
Compare
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.
LGTM
Hey @mmlb. When you have a few moments, would you mind checking this out? |
LGTM, sorry for not reviewing but I really didn't want to have something jump in front of #584 and dropping reviews and thus prolonging it even more. |
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.
lgtm but needs a rebase
With this a tink-worker can be started without a registry defined and templates in Tink server can specify any registry. Signed-off-by: Jacob Weinstock <jakobweinstock@gmail.com>
21a4978
to
442fabd
Compare
) ## Description Allow registry, registry username, and password to be empty strings. These values are passed as kernel command line args for OSIE's boot up and then used by Tink worker when it pulls and runs containers. With [this](tinkerbell/tink#607) change to Tink worker, allowing the empty string here provides Tink worker the ability to specify any fully qualified container image in a template. e.g. `docker.io/alpine`, `quay.io/tinkerbell-actions/cexec`, `public.ecr.aws/l0g8r8j6/tinkerbell/pbnj`, etc This change is backward compatible and shouldn't negatively affect using the Cacher backend. ## Why is this needed Fixes: # ## How Has This Been Tested? ## How are existing users impacted? What migration steps/scripts do we need? ## Checklist: I have: - [ ] updated the documentation and/or roadmap (if required) - [ ] added unit or e2e tests - [ ] provided instructions on how to upgrade
Description
With this a tink-worker can be started without a registry defined and templates in Tink server can specify any registry.
Why is this needed
Currently, if a container registry is not specified then the container image will start with a
/
. This will cause tink worker to fail to pull/run the container. With this change, if a container registry is not specified the/
will not be added and the contain image will be pulled from the container runtime's default registry. For containerd and docker (which is what Hook runs) the default registry isdocker.io
.Fixes: #
How Has This Been Tested?
How are existing users impacted? What migration steps/scripts do we need?
Checklist:
I have: