-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add resourceType and resourceName to PortForward event #2272
Add resourceType and resourceName to PortForward event #2272
Conversation
Adds resourceType and resourceName to the PortForward event in skaffold.proto and regenerates the proto files. Updates current port forwarding code to pass in this information for automatically forwarded pods.
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.
This would be a great opportunity to introduce a test for what events are sent during portforwarding. Do you mind adding it? Otherwise this looks good.
3eb9016
to
28e44de
Compare
@balopat I added a unit test to make sure the correct number of events were sent during port forwarding -- I think making sure the port forward event itself is correct would require some sort of unit testing framework around eventing which would probably make more sense to do separately. WDYT? |
Hmmm...I think that we could start that mini framework small - just by setting the I see more benefit in checking the actual events compared to just the number of events. |
Codecov Report
@@ Coverage Diff @@
## master #2272 +/- ##
=========================================
- Coverage 60.64% 60% -0.65%
=========================================
Files 186 186
Lines 7857 7945 +88
=========================================
+ Hits 4765 4767 +2
- Misses 2706 2792 +86
Partials 386 386
Continue to review full report at Codecov.
|
Adds resourceType and resourceName to the PortForward event in skaffold.proto and regenerates the proto files.
Updates current port forwarding code to pass in this information for automatically forwarded pods.