-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: Adding API defaults unit test + testfile fixture #6889
Conversation
Signed-off-by: Jason Costello <jason@jsnc.tl>
[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 |
Hi @jsnctl. Thanks for your PR. I'm waiting for a cert-manager 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. |
4598181
to
a7e5df7
Compare
/ok-to-test |
Signed-off-by: Jason Costello <jason@jsnc.tl>
Signed-off-by: Jason Costello <jason@jsnc.tl>
Signed-off-by: Jason Costello <jason@jsnc.tl>
@jsnctl: The following test 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. |
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.
/address/
Signed-off-by: Jason Costello <jason@jsnc.tl>
Recent merge from @inteon if you're happy with the pattern employed here after your review, I can go ahead and implement in other parts of the API where you think it'd be appropriate? |
Pattern looks great, feel free to do the same thing for the other APIs! |
Signed-off-by: Jason Costello <jason@jsnc.tl>
Signed-off-by: Jason Costello <jason@jsnc.tl>
@inteon This has now been applied to each of the APIs in |
Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
Thanks @jsnctl for fixing this issue, it should prevent us from unintentionally changing the default values in the future. This PR also shows that this area still needs a bit of work (eg. leaseDuration etc. should just be formatted as 1m instead of 60000000000). But those improvements are for another PR. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: inteon 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 @inteon, no further changes from me so if you're happy, merge away! |
/unhold |
Pull Request Motivation
make update-apidefaults-*
) defaults/internal
e.g.
cert-manager/internal/apis/config/cainjector/v1alpha1/defaults.go
Line 31 in 620d6ff
updated to
defaultLeaderElectionNamespace = "kube-system-abc"
results in a test failure.WIP as I wanted to sanity check this was the intention of the ticket & a reasonable pattern to follow before implementing for wider API space, but I'm also not very familiar with
defaulter-autogen
or thecert-manager
project structure (w.r.tinternal
vspkg
)Kind
feature/chore
Release Note