-
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
Fix 4950: User-defined port forwarding resources ignore the namespace flag #4987
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4987 +/- ##
==========================================
- Coverage 72.27% 72.18% -0.09%
==========================================
Files 361 362 +1
Lines 12640 12718 +78
==========================================
+ Hits 9135 9180 +45
- Misses 2827 2856 +29
- Partials 678 682 +4
Continue to review full report at Codecov.
|
|
||
fakeForwarder := newTestForwarder() | ||
entryManager := NewEntryManager(ioutil.Discard, fakeForwarder) | ||
fakeForwarder := newTestForwarder() |
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.
unintentional tab.
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.
Sorry I'm not sure about this. I have shifted the whole nested function body because of the loop above
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.
oops. sorry i missed you ended up shifting.I thought the IDE replaced spaces by tabs.
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.
Changes look good to me except some nit.
Looks like an integration test failure here https://travis-ci.com/github/GoogleContainerTools/skaffold/jobs/424309654#L2210 |
thanks for the quick feedback!
The test failed because events may occur in a different order than I expected. I have split this test. |
Thanks for digging deeper into this! |
TODO: manual verification. |
Testing notes:
I was expecting to see warning. "l"Skipping the port forwarding resource .." but did not.
Will dig deeper tomorrow. |
Looks like skaffold creates a forward manager instance with namespace from command line or kubectx before deploy. Applying the following diff fixes the issue.
We need to apply similar patch in build_deploy.go |
Thanks! I have added these changes and am working on tests |
Fixes: #4950
Description
User facing changes (remove if N/A)