-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
adding the f command to pf extender view #2511
Conversation
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.
@wjiec Nice addition! Thank you for this Jayson!!
The question is do we want to surface the pf indicator on these views to clue users that active pfs are in effect (or not) or leave it as is?
@derailed Yes, that's a good question, I think it would be clearer to add a pf indicator, and it would also help to indicate the current state between different views. Wouldn't it "break" some backward compatibility to add the PF indicator? What do you think? |
@wjiec Thanks for your note Jayson! I think it would be useful to clue users that pfs are active at pod manager level especially in light of these new action. The stickier point here is to figure out an efficient way to surface status without having to incur an api server call lto find matching pods and hence pfs. Does this make sense? |
@derailed You are so right! I'm going to try a simple refactoring of the pf tracking object along your lines! |
@wjiec Thank you Jayson! We could do a follow up PR for this as what you have here is already a good enhancement... |
@derailed Indeed the subsequent optimization is a rather large modification, so let this PR advanced? |
@wjiec Thank you for looking into it! Figured that might be the case ;( |
In practice, I may be creating port-forward in svc or dp view, but I found that I can't view the enabled forwarding via f command in these views, I have to switch to po view to see it.
So this PR inlines the f command directly in pf_extender, what do you think about this approach?