-
Notifications
You must be signed in to change notification settings - Fork 1.4k
🐛 Gitlab repository: switch to url.Path instead of url.RawPath #9481
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
Conversation
|
Hi @CharlieR-o-o-t. 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. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
killianmuldoon
left a comment
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.
/area clusterctl
/ok-to-test
Thanks for this! Did you run into this issue with a release version of clusterctl?
|
@killianmuldoon I have noticed that some tests has been failed and found the reason of usage url.RawPath. So, it's expected the projectSlug should be always url-encoded. So, cluster-api gitlab client will not work in case when ProjectID is provided instead of ProjectSlug, this is correct url to access package registry, but invalid in context of cluster-api client. |
|
@CharlieR-o-o-t This change seems reasonable to me. Did you try this out locally to verify that it works? And second, it looks like you're getting some unit test failures saying that it failed to create the GitLab client. |
hello, I had take a look into unit tests, there is strict test condition that gitlab project expected to be url encoded string. This is why it's failing. There is bunch of unit tests linked to this. I need some time to rework this. To allow both url encoded and non url-encoded. Will update soon. |
fabriziopandini
left a comment
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
|
/lgtm cancel as per
|
|
PR needs rebase. 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. |
|
@CharlieR-o-o-t: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
|
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs. This bot triages PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
|
/close as per #10605 (comment) |
|
@fabriziopandini: Closed this PR. 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-sigs/prow repository. |
What this PR does / why we need it:
For now it's impossible to use non-urlencoded URL with cluster-api gitlab repo client.
After url.Parse call, url.RawPath is used which is optional, and exists only if provided URL has encoded characters.
E.g this url
https://gitlab.foo.com/api/v4/projects/3441/packages/generic/aws-provider/v0.2.34/infrastructure-components.yamlwill result in error
invalid url: a GitLab repository url should be in the form https://{host}/api/v4/projects/{projectSlug}/packages/generic/{packageName}/{defaultVersion}/{componentsPath}/area clusterctl
area/clusterctl