Migrate Subscription reconciler to use messaging.* v1 resources#3930
Conversation
|
fyi this is ready for review @aliok |
|
/assign |
| var ( | ||
| v1beta1ChannelGVK = v1beta1.SchemeGroupVersion.WithKind("Channel") | ||
| v1ChannelGVK = v1.SchemeGroupVersion.WithKind("Channel") | ||
| //v1ChannelGVK = v1.SchemeGroupVersion.WithKind("Channel") |
There was a problem hiding this comment.
thanks for catching, I had it staged but forgot to push that change cleaning up
| } | ||
|
|
||
| func (r *Reconciler) getSubStatusV1Beta1(subscription *v1beta1.Subscription, channel *eventingduckv1alpha1.ChannelableCombined) (eventingduckv1beta1.SubscriberStatus, error) { | ||
| func (r *Reconciler) getSubStatusV1Beta1(subscription *v1.Subscription, channel *eventingduckv1alpha1.ChannelableCombined) (eventingduckv1.SubscriberStatus, error) { |
There was a problem hiding this comment.
Could you rename this function to ...V1?
|
/approve Some nits. |
| } | ||
|
|
||
| func (r *Reconciler) getSubStatusV1Alpha1(subscription *v1beta1.Subscription, channel *eventingduckv1alpha1.ChannelableCombined) (eventingduckv1beta1.SubscriberStatus, error) { | ||
| func (r *Reconciler) getSubStatusV1Alpha1(ctx context.Context, subscription *v1.Subscription, channel *eventingduckv1alpha1.ChannelableCombined) (eventingduckv1.SubscriberStatus, error) { |
There was a problem hiding this comment.
perhaps also a "bad" name here ...
..... (eventingduckv1.SubscriberStatus, error)
There was a problem hiding this comment.
this actually is getting the status from the v1Alpha1 channel passed and returning a v1 status. I think the current name works here, but let me know if you have concrete suggestions. Thanks!
nlopezgi
left a comment
There was a problem hiding this comment.
thanks for the review. fixed the nits.
| } | ||
|
|
||
| func (r *Reconciler) getSubStatusV1Beta1(subscription *v1beta1.Subscription, channel *eventingduckv1alpha1.ChannelableCombined) (eventingduckv1beta1.SubscriberStatus, error) { | ||
| func (r *Reconciler) getSubStatusV1Beta1(subscription *v1.Subscription, channel *eventingduckv1alpha1.ChannelableCombined) (eventingduckv1.SubscriberStatus, error) { |
| var ( | ||
| v1beta1ChannelGVK = v1beta1.SchemeGroupVersion.WithKind("Channel") | ||
| v1ChannelGVK = v1.SchemeGroupVersion.WithKind("Channel") | ||
| //v1ChannelGVK = v1.SchemeGroupVersion.WithKind("Channel") |
There was a problem hiding this comment.
thanks for catching, I had it staged but forgot to push that change cleaning up
| } | ||
|
|
||
| func (r *Reconciler) getSubStatusV1Alpha1(subscription *v1beta1.Subscription, channel *eventingduckv1alpha1.ChannelableCombined) (eventingduckv1beta1.SubscriberStatus, error) { | ||
| func (r *Reconciler) getSubStatusV1Alpha1(ctx context.Context, subscription *v1.Subscription, channel *eventingduckv1alpha1.ChannelableCombined) (eventingduckv1.SubscriberStatus, error) { |
There was a problem hiding this comment.
this actually is getting the status from the v1Alpha1 channel passed and returning a v1 status. I think the current name works here, but let me know if you have concrete suggestions. Thanks!
|
The following is the coverage report on the affected files.
|
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aliok, matzew, nlopezgi 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 |
…ive#3930) * migrate subscription to v1 messaging * stash changes * review comments
Part of #3584
Proposed Changes
Removing tests that deal with v1alpha1 subscription (according to #3789 (comment) - see also #3871)