-
Notifications
You must be signed in to change notification settings - Fork 42
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
Regroup output for better debug flow and add missing DBs #87
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Vijai Kalathur <kvijai@gmail.com>
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.
Would it be possible to have it such that the component columns are the same and are a shared printout?
Maybe if some of the custom columns mismatch but can be aliased we can use the following ones with --no-headers
output to strip that and have htem appear under the same header. i think the main concern would be padding/spacing inconsistencies based on length of values.
At some point we need to circle back to this and start summarizing the output instead of adding more verbosity to it
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.
Noticed a few minor things when I ran the script on a BVT cluster, but I definitely like the new output flow! Feels more streamlined. Thanks Vijai!
kubectl-plugin/kubectl-waiops
Outdated
# Elasticsearch status | ||
INSTANCE_ES=$(oc get elasticsearch iaf-system -o custom-columns='KIND:.kind,NAMESPACE:.metadata.namespace,NAME:.metadata.name,READY:.status.conditions[?(@.type=="Ready")].status') | ||
STATUS_ES=$(oc get elasticsearch iaf-system -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}') | ||
printStatus "$STATUS_ES" "True" "$INSTANCE_ES" |
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.
I ran the script on the latest BVT and encountered an error with elasticsearch:
Same fix required here as for status
's output.
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.
Resolved in latest commit.
kubectl-plugin/kubectl-waiops
Outdated
# Elasticsearch status | ||
INSTANCE_ES=$(oc get elasticsearch iaf-system -o custom-columns='KIND:.kind,NAMESPACE:.metadata.namespace,NAME:.metadata.name,READY:.status.conditions[?(@.type=="Ready")].status') | ||
STATUS_ES=$(oc get elasticsearch iaf-system -o jsonpath='{.status.conditions[?(@.type=="Ready")].status}') | ||
printStatus "$STATUS_ES" "True" "$INSTANCE_ES" |
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.
I ran the script on the latest BVT and encountered an error with elasticsearch:
Made the same comment for status-all
's output -- same fix required here.
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.
Thanks for catching this. I think on those clusters there is an additional elastic operator that's installed. I will update to fully qualify it.
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.
Resolved in latest commit.
printf "${blue}${bold}Hint: log into your cluster with CLUSTER_ADMIN credentials and try again.${normal} | ||
|
||
" | ||
printf "${blue}${bold}Hint: log into your cluster with CLUSTER_ADMIN credentials and try again.${normal}" |
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.
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.
@kvijai82 wondering if we added these spaces back in.
Agree with the summary part. Started experimenting with a troubleshoot option that will need a bit more work. Regarding removing some headers, will experiment a bit to see if I can atleast group some of them together based on the spacing to reduce the real estate of the output a bit. |
Three followups to this PR to be handled in the next couple of week with interns:
|
@kvijai82 Just ran the updated script on a few clusters (my v3.4 test cluster + a BVT on
Other than this, everything else looks good. |
Regroup the output into foundational & cp4waiops section to make it easier to debug issues. There were a few DBs that were missing as well that were added.