Skip to content
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

Use typed lists in cert writer tests #220

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

grantr
Copy link
Contributor

@grantr grantr commented Nov 22, 2018

Now that #213 is in, these tests can be updated to use typed lists instead of corev1.List. I find the tests are clearer without the use of Raw hacks.

@mengqiy I'm assuming the use of corev1.List and JSON marshaling was a workaround for the issue with the fake client fixed in #213, but I could be wrong about that. You can decide what style you prefer. 😄

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 22, 2018
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Nov 22, 2018
@mengqiy mengqiy self-assigned this Nov 26, 2018
@mengqiy
Copy link
Member

mengqiy commented Nov 26, 2018

I definitely prefer the cleaner one :)
Thanks for the cleanup!
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 26, 2018
@mengqiy mengqiy added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 26, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by: grantr

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit acb7b11 into kubernetes-sigs:master Nov 26, 2018
@grantr grantr deleted the typed-lists-in-tests branch November 27, 2018 18:57
justinsb pushed a commit to justinsb/controller-runtime that referenced this pull request Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants