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
Improve linkerd upgrade | kubectl apply output format #2956
Comments
@klingerf should we be concerned about the warning as well? It sounds scary even though I don't believe it impacts users at all. |
The warnings should be benign afaict. We get that one-off warning on the |
@grampelberg Ah, I totally missed that warning about the MWC in the kubectl output. @ihcsim's explanation for what's going on there makes sense. FWIW, I'm not sure that "You're on your way to upgrading Linkerd" message is all that useful. We don't print an equivalent when running |
👍 from me. |
I'm looking for a first issue to do. Would it be okay for me to pick this up? |
@wez470 go for it. Since this is a few months old I would double-check that the issue still exists, first. And if you come up with a solution, I would propose it in this issue before jumping straight to a PR. There are several competing concerns when it comes to upgrade flow. |
Definitely still a problem, we'd love your help @wez470 ! |
I apologize, but I may not get to doing this issue. I still might, but wanted to say that anyone who sees this should feel free to do it. |
Hi @klingerf! I would like to work on this issue. |
okMessage is displayed in the middle while linkerd upgrade Remove the okMessage since it was inconsistent with the linkerd install output run linkerd upgrade | kubectl apply -f - to see anymore such message Fixes linkerd#2956 Signed-off-by: Supratik Das <rick.das08@gmail.com>
@supra08 go for it! Looks like you got a PR up and everything =) |
okMessage is displayed in the middle while linkerd upgrade Remove the okMessage since it was inconsistent with the linkerd install output run linkerd upgrade | kubectl apply -f - to see anymore such message Fixes linkerd#2956 Signed-off-by: Supratik Das <rick.das08@gmail.com>
* Improve kubectl apply format by removing misplaced message Fixes #2956 Also separate stderr messages with a new line Signed-off-by: Supratik Das <rick.das08@gmail.com>
I just ran
linkerd upgrade | kubectl apply -f -
on one of my AKS clusters, to upgrade the control plane fromedge-19.5.3
toedge-19.6.2
. It printed:It's a bit jarring that the "You're on your way to upgrading" message gets printed in the middle of the kubectl apply output. I think the issue is that
linkerd upgrade
writes injected objects incrementally to stdout, andkubectl apply
starts applying them before the upgrade command has finished running. I can't find it offhand, but we've run into this same issue before, and I think we fixed it by writing the config to a buffer, and then writing the contents of the buffer to stdout once all objects are injected.The text was updated successfully, but these errors were encountered: