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 deprecated files and functions #6730
Conversation
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
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 Tim.
I was also annoyed by all the lingering bazel files, so I'm glad to see them removed.
Also happy to see the removal of the deprecated Go functions, but notice that we're quite inconsistent about how long (and how many minor releases) we wait before removing them.
Please update the release note so explain which deprecated modules and functions have been removed.
/hold in case you were not ready for this to be reviewed.
/lgtm
@@ -377,38 +377,3 @@ func CertificateTemplateFromCertificateSigningRequest(csr *certificatesv1.Certif | |||
CertificateTemplateValidateAndOverrideKeyUsages(ku, eku), // Override the key usages, but make sure they match the usages in the CSR if present | |||
) | |||
} | |||
|
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.
These functions were deprecated since v1.13.0
which was released ~4 months ago on Sep 12, 2023.
I think that's probably enough notice and in the README file we say:
Lines 84 to 86 in b656118
⚠️ Please note that cert-manager **does not** currently provide a Go module compatibility guarantee. That means that | |
**most code under `pkg/` is subject to change in a breaking way**, even between minor or patch releases and even if | |
the code is currently publicly exported. |
// Deprecated: use slices#Equal instead | ||
func EqualSorted(s1, s2 []string) bool { | ||
return slices.Equal(s1, s2) | ||
} |
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.
You deprecated these in #6593 which was released in v1.14.0
this month:
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.
I would be very surprised if someone imported these functions.
So I think it is fine to remove them this soon.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: wallrj 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 |
/unhold |
/retest |
Removes functions and files that are deprecated, goal is to reduce clutter in codebase.
Kind
/kind cleanup
Release Note