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

modified channel flag to align with sink flag parsing #1951

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EraKin575
Copy link

Description

Refactor the ChannelRef structure's Parse method to utilize the common implementation for parsing GVK formats.

Changes

*modified channel flag parsing to align with sink flag
*
*

Reference

Fixes #1871

Release Note


Copy link

knative-prow bot commented Jun 17, 2024

Welcome @EraKin575! It looks like this is your first PR to knative/client 🎉

Copy link

knative-prow bot commented Jun 17, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: EraKin575
Once this PR has been reviewed and has the lgtm label, please assign vyasgun for approval. For more information see the Kubernetes Code Review Process.

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

@knative-prow knative-prow bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jun 17, 2024
Copy link

knative-prow bot commented Jun 17, 2024

Hi @EraKin575. Thanks for your PR.

I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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-sigs/prow repository.

Copy link

@knative-prow knative-prow bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EraKin575: 0 warnings.

In response to this:

Description

Refactor the ChannelRef structure's Parse method to utilize the common implementation for parsing GVK formats.

Changes

*modified channel flag parsing to align with sink flag
*
*

Reference

Fixes #1871

Release Note


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-sigs/prow repository.

@knative-prow knative-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 17, 2024
@dsimansk
Copy link
Contributor

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 17, 2024
@knative-prow knative-prow bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 17, 2024
Copy link

codecov bot commented Jun 18, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 76.81%. Comparing base (543b2b8) to head (5e1ce9f).
Report is 1 commits behind head on main.

Files Patch % Lines
pkg/kn/flags/channel_types.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1951      +/-   ##
==========================================
- Coverage   76.82%   76.81%   -0.02%     
==========================================
  Files         207      207              
  Lines       12892    12895       +3     
==========================================
+ Hits         9904     9905       +1     
- Misses       2187     2188       +1     
- Partials      801      802       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dsimansk
Copy link
Contributor

@EraKin575 thanks for the contribution and looking into the issue.

My idea from #1871 to align --channel flag with the existing parsing logic from sink. Please feel free to evaluate the code and let me know if it's possible or not. Priority is to make UX feel the same, for --sink or --channel.

https://github.com/knative/client/blob/main/pkg/kn/commands/flags/sink.go

@EraKin575
Copy link
Author

@EraKin575 thanks for the contribution and looking into the issue.

My idea from #1871 to align --channel flag with the existing parsing logic from sink. Please feel free to evaluate the code and let me know if it's possible or not. Priority is to make UX feel the same, for --sink or --channel.

https://github.com/knative/client/blob/main/pkg/kn/commands/flags/sink.go

make it a common function for both sink and channel flags, right?

@dsimansk
Copy link
Contributor

@EraKin575 thanks for the contribution and looking into the issue.
My idea from #1871 to align --channel flag with the existing parsing logic from sink. Please feel free to evaluate the code and let me know if it's possible or not. Priority is to make UX feel the same, for --sink or --channel.
https://github.com/knative/client/blob/main/pkg/kn/commands/flags/sink.go

make it a common function for both sink and channel flags, right?

Yes, exactly that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align GVK format accepted by --channel flag
2 participants