Add helper methods from in-memory provisioner to utils#560
Conversation
|
/cc @adamharwayne |
adamharwayne
left a comment
There was a problem hiding this comment.
Looks good, but now it needs unit tests. 😝
Nothing comes for free 😞 |
|
Please merge and I'll take another look. |
|
@adamharwayne on it :) |
|
/assign grantr |
| eventingv1alpha1.AddToScheme(scheme.Scheme) | ||
| } | ||
|
|
||
| func TestCreateK8sService(t *testing.T) { |
There was a problem hiding this comment.
My personal preference is table tests, but I'm not sure if that is something the repo has standardized on.
There was a problem hiding this comment.
+1 on table tests for this situation where it is the same test body, but I would accept a followup for that refactor.
There was a problem hiding this comment.
Sure, I will do. Opened up #572 to track it
| Spec: eventingv1alpha1.ChannelSpec{ | ||
| Provisioner: &corev1.ObjectReference{ | ||
| Name: clusterChannelProvisionerName, | ||
| Kind: "ClusterProvisioner", |
There was a problem hiding this comment.
ClusterChannelProvisioner
There was a problem hiding this comment.
Thanks, I will address in the follow-up.
| return clusterChannelProvisioner | ||
| } | ||
|
|
||
| func ClusterProvisonerType() metav1.TypeMeta { |
There was a problem hiding this comment.
ClusterChannelProvisionerType()
|
/lgtm |
|
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored or co-authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
|
The following is the coverage report on pkg/.
|
|
@evankanderson can you set the CLA bot here too ? |
|
would be good to land this too, @evankanderson |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: neosab, vaikas-google The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I am 💯 happy to co-author this with @matzew |
|
I am hppy w/ the changes too /lgtm |
|
A Googler has manually verified that the CLAs look good. (Googler, please make sure the reason for overriding the CLA status is clearly documented in these comments.) |
Moving some methods from in-memory provisioner to a new
channel_util&provisioner_util. These methods will be useful for other channel provisioners like kafka that I am working on.