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
Remove purell package usage from kubeadm #103801
Conversation
@gkarthiks: GitHub didn't allow me to request PR reviews from the following users: gkarthiks. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. 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/test-infra repository. |
/test pull-kubernetes-dependencies |
under "Does this PR introduce a user-facing change?" notice how the original template had the release note formed with try copy pasting it like that.
also please keep the commits squashed to one. |
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.
/approve
/milestone v1.23
thanks, the change looks good.
it can be merged on august 4th (code freeze end).
/triage accepted |
…kage The purell package at github.com/PuerkitoBio/purell is no longer maintained and in k/k repo under kubeadm package its been used for normalizing the URL. This commit removes the dependency on this package and creates a local function for normalizing the URL within the preflight package under cmd/kubeadm. Signed-off-by: gkarthiks <github.gkarthiks@gmail.com> chore: add new line at end of the file Signed-off-by: gkarthiks <github.gkarthiks@gmail.com> fix: remove unused mod from vendor modules file Signed-off-by: gkarthiks <github.gkarthiks@gmail.com>
as mentioned above, the code block must be formatted with leading "```release-note" instead of "````". |
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
on the code change, thanks.
apologies @neolit123 . On the release-note section if you mean like in the below screenshot, that's how I have had it from the beginning except I had NONE initially. Is there something I am misunderstanding? |
Ok, it looks fine in that case! I was checking with the Quote feature of
GitHub which may be dropping block formatting.
|
The go mod changes will likely get approved after code freeze. |
/lgtm |
@@ -81,7 +81,6 @@ github.com/Microsoft/hcsshim/osversion | |||
# github.com/NYTimes/gziphandler v1.1.1 => github.com/NYTimes/gziphandler v1.1.1 | |||
github.com/NYTimes/gziphandler | |||
# github.com/PuerkitoBio/purell v1.1.1 => github.com/PuerkitoBio/purell v1.1.1 | |||
## explicit | |||
github.com/PuerkitoBio/purell |
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.
We can't actually get rid of it yet, right? I still see one dep on it (vendor/github.com/go-openapi/jsonreference/reference.go). Should we port this same change to go-openapi ?
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.
looks like it asks for a more demanding normalization from the library:
https://github.com/go-openapi/jsonreference/blob/master/reference.go#L117
https://github.com/PuerkitoBio/purell/blob/master/README.md
FlagsSafe NormalizationFlags = FlagLowercaseHost | FlagLowercaseScheme | FlagUppercaseEscapes | FlagDecodeUnnecessaryEscapes | FlagEncodeNecessaryEscapes | FlagRemoveDefaultPort | FlagRemoveEmptyQuerySeparator
so i don't think the replacement function in this PR is sufficient, as it only handles the duplicate slashes.
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.
Thanks!
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gkarthiks, liggitt, neolit123, thockin 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 |
Still, if Purell is abandonware, they should consider in-sourcing that logic
…On Thu, Aug 5, 2021 at 1:09 PM Lubomir I. Ivanov ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In vendor/modules.txt
<#103801 (comment)>
:
> @@ -81,7 +81,6 @@ github.com/Microsoft/hcsshim/osversion
# github.com/NYTimes/gziphandler v1.1.1 => github.com/NYTimes/gziphandler v1.1.1
github.com/NYTimes/gziphandler
# github.com/PuerkitoBio/purell v1.1.1 => github.com/PuerkitoBio/purell v1.1.1
-## explicit
github.com/PuerkitoBio/purell
looks like it asks for a more demanding normalization from the library:
https://github.com/go-openapi/jsonreference/blob/master/reference.go#L117
https://github.com/PuerkitoBio/purell/blob/master/README.md
FlagsSafe NormalizationFlags = FlagLowercaseHost | FlagLowercaseScheme |
FlagUppercaseEscapes | FlagDecodeUnnecessaryEscapes |
FlagEncodeNecessaryEscapes | FlagRemoveDefaultPort |
FlagRemoveEmptyQuerySeparator
so i don't think the replacement function in this PR is sufficient, as it
only handles the duplicate slashes.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#103801 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKWAVBSXGVLULLQKBBLPSLT3LVZJANCNFSM5AVXGBHA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
that is a good idea. @gkarthiks would you like to log an issue for https://github.com/go-openapi/jsonreference so that they can adapt as well (and remove our dep on the package, since we are vendoring go-openapi/jsonreference)? |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR removes the usage of the
purell
module from the kubeadm and introduces the localized function for normalizing the URL.Which issue(s) this PR fixes:
Fixes #103068
Special notes for your reviewer:
This PR is to move away from the non-maintained module
purell
and create a localized function that does the normalization of the URL string.Ref: PuerkitoBio/purell#33
Does this PR introduce a user-facing change?
/cc
/sig cluster-lifecycle
/area kubeadm
/area code-organization
@neolit123