-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 pseudo git HTTP urls broken since 59c82659 #4453
Conversation
Hi @sylr. 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. |
Unfortunately, this does not work as it now breaks urls like in your initial PR
I agree but I believe to get there we have to get the kustomize team to decide on what url formats they actually support so that we can add full test cases to ensure that we don't break anything as we move towards it. I was hoping #4030 would trigger a discussion on this but it doesn't seem like there's much interest. |
🤦 I wouldn't have guessed that any github url would be considered as a valid git repository. |
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Finally, I think I hate it. |
Ok so my take on this is to stop accepting valid HTTP(s) URL as possible Pseudo GIT URL and use the already implemented
If this is not acceptable, this PR fixes the problem but I don't like it to be honest. |
That is something we can discuss in the future but we are not ready to do a major version bump with backwards breaking changes. Thank you for making this PR, will review when I can. /ok-to-test |
You can file a tracking issue with this proposal if you'd like. I think your proposal is fine and we can take a look at a PR that does this, but we should first fix the regression and release this week. For this PR, please add a test to confirm that it works for the URL in #4455. You can add this test to https://github.com/kubernetes-sigs/kustomize/blob/master/api/krusty/remoteload_test.go, see |
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
@sylr: This PR has multiple commits, and the default merge method is: merge. 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. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: natasha41575, sylr 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 |
Thanks for the quick fix! |
No worries, that was the least I could do. |
Simple fix to restore the broken feature of pseudo git HTTP URLS (i.e.: https://github.com/org/repo.git//path/within/repo).
However, I believe the whole resource loading deserves a serious overhaul and each possible way of loading resources should have its own Loader. For example I think the fileLoader should only handle absolute and relative paths, not HTTP URLs like it does now.
Relates to #4030.
Signed-off-by: Sylvain Rabot sylvain@abstraction.fr