[release/1.7] Fix issue with empty host tree in hosts.toml#10028
Conversation
|
Hi @brandond. Thanks for your PR. I'm waiting for a containerd 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/test-infra repository. |
|
Seems the issue here would be better fixed by just changing |
Sure, that'd work too. It didn't seem like there was much point in calling
I don't know, I didn't poke at the toml parser return; I suspect it just returns an empty tree so that |
|
Note this fix is not needed in main as we have bumped the toml library major version and the new implementation does not have this issue. |
|
Is this fix needed in 1.6, or not affected? |
|
Can you squash commits and describe the issue in the commit? |
|
/ok-to-test |
|
Hi @brandond can you squash the commit? Then the PR should be ready to be merged?
I think it's needed in 1.6, I remember seeing the same issue on 1.6 |
|
Can we merge this? |
|
I think we were hoping for the submitter (@brandond) to squash the commits and add a description of the fix to the commit message. Maybe we should carry or does anyone have a strong opinion on the squash/comment? We've asked several times |
|
I can rebase and squash, sure. |
Allows parsing a hosts.toml file that has no `[host]` or `[host."https://registry.example.com"]` entries. Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
|
Done. |
Thanks! |
|
@brandond Is this still relevant to you? I'm coming in to look at old PRs and this one seems to have been approved, but never got merged for some reason. We've recently transitioned 1.7 to focus primarily on GKE's use cases (since @chrishenzie and I are extending maintenance on the branch beyond the rest of the maintainers) and this is not really relevant to GKE, but I'd feel bad closing this since it's been approved and stuck for nearly a year... |
Fixes: #10027