✨ Accept per-host pull secrets for external OCI registries#2745
✨ Accept per-host pull secrets for external OCI registries#2745mabulgu wants to merge 2 commits intometal3-io:mainfrom
Conversation
|
Hi @mabulgu. Thanks for your PR. I'm waiting for a metal3-io 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. DetailsInstructions 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-sigs/prow repository. |
898fffc to
9594af2
Compare
|
/ok-to-test |
|
It might be too much code to be squashing into one commit...what do we think? |
10 is definitely not right either. One for implementation, one for tesrts, and one for docs? There is plenty of work left though, given the conditions need work per Dmitry's review. |
|
Thanks for your comments! @MahnoorAsghar > It might be too much code to be squashing into one commit...what do we think? As soon as we itemize them and they are in the same context, I don't think so. I am going to remove everything related to conditions as they were like extra, but everything else share the same context and can be in the same squash commit IMO. @tuminoid > One for implementation, one for tesrts, and one for docs +1 for docs -1 for tests as tests are a part of the "implementation". Without tests, I would not count it as implemented. What I will do is: seperating the code commit (which will have less changes than the current changes because of the condition revert) and the commit for docs. |
This is fine as well, but its quite common to implement tests in separate commit in same PR. Makes it maybe easier to manage, but like said, I'm 100% fine with code+tests in same commit. |
|
/retest |
b18570e to
27c9860
Compare
|
@dtantsur I applied your suggestions. pls check when you have time. You will find the relevant commetns resolved but pls feel free to reopen them if you feel any of them are not implemented the way you suggested |
|
Not sure if the e2e test filure is related to my changes as it seems to be related to the BMC management credentials |
|
This needs rebase due linter updates. |
645c8b1 to
35ed9a3
Compare
|
/retest |
35ed9a3 to
8a5cc14
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 15 out of 16 changed files in this pull request and generated 5 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tuminoid
left a comment
There was a problem hiding this comment.
Please check Copilot nits.
I don't have other blockers, except the importing of basically unmaintained and not widely used dockercfg.
8a5cc14 to
7056860
Compare
7056860 to
f02b28b
Compare
|
/retest |
4e09edc to
9ea9688
Compare
|
/lgtm |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: mabulgu <mabulgu@gmail.com>
|
New changes are detected. LGTM label has been removed. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: mabulgu <mabulgu@gmail.com>
What this PR does / why we need it:
Adds per-host registry authentication for oci:// provisioning images.
New optional field on BareMetalHost:
When set, the controller validates the Kubernetes Docker-config secret (kubernetes.io/dockerconfigjson or kubernetes.io/dockercfg), selects the correct registry entry (supports exact host and host:port), and uses those credentials during provisioning so private OCI artefacts can be fetched on a per-host basis. Public images continue to work without credentials.
This removes a blocker for users who need different registries/accounts per machine.
Assisted-By: Claude-4.5-sonnet, Claude-opus-4.6