-
Notifications
You must be signed in to change notification settings - Fork 40k
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
kubectl get ingress output remove rules #26684
Conversation
Now the columns don't make sense. How about:
where we add the +1 more part using the same length algorithm we use for endpoints.
And if there are no hosts, eg:
we get:
also, what does |
@bprashanth update this, ptal. If there are no hosts, we use
|
Hmm,
Has no paths, which means we apply the wildcard and send all traffic to that backend. If you have the time to fix the describe output, that's wrong too. It should be:
Or we should not display the table at all. |
I will open a new PR to fix the describe output. |
@@ -420,7 +420,7 @@ var replicationControllerColumns = []string{"NAME", "DESIRED", "CURRENT", "AGE"} | |||
var replicaSetColumns = []string{"NAME", "DESIRED", "CURRENT", "AGE"} | |||
var jobColumns = []string{"NAME", "DESIRED", "SUCCESSFUL", "AGE"} | |||
var serviceColumns = []string{"NAME", "CLUSTER-IP", "EXTERNAL-IP", "PORT(S)", "AGE"} | |||
var ingressColumns = []string{"NAME", "RULE", "BACKEND", "ADDRESS", "AGE"} | |||
var ingressColumns = []string{"NAME", "HOSTS", "PORTS", "ADDRESS", "AGE"} |
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.
nit: can you reorder to address, ports? because I'm guessing pople are going to try piping this through shell commands and reordering the two would be an extra step.
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.
Good suggestion 👍
Just one nit. Thanks for helping out! |
Automatic merge from submit-queue update ingress describe output refer #26684 for more detail. @bprashanth ptal.
GCE e2e build/test passed for commit 9d28bab. |
Automatic merge from submit-queue |
fixes #22837
@bprashanth ptal.
Now the output is:
The
get
output is more clean.