Skip to content
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

Add kubectl ko log #2451

Merged
merged 12 commits into from Mar 15, 2023
Merged

Add kubectl ko log #2451

merged 12 commits into from Mar 15, 2023

Conversation

changluyi
Copy link
Collaborator

What type of this PR

Examples of user facing changes:

  • Features
  • Bug fixes
  • Docs
  • Tests

Which issue(s) this PR fixes:

Fixes #2400

@changluyi changluyi requested review from zhangzujian and oilbeater and removed request for zhangzujian March 9, 2023 03:04
log(){
component="$1"
sub_component="$2"
tail_lines=${3:-100}
Copy link
Collaborator

@oilbeater oilbeater Mar 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a way to collect all lines.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -26,8 +26,14 @@ showHelp(){
echo " env-check check the environment configuration"
echo " tuning {install-fastpath|local-install-fastpath|remove-fastpath|install-stt|local-install-stt|remove-stt} {centos7|centos8}} [kernel-devel-version] deploy kernel optimisation components to the system"
echo " reload restart all kube-ovn components"
echo " log {kube-ovn|ovn|ovs|linux} {all|sub_component...} [tail_lines]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a short hand to collect logs for all components

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

name: kubectl-ko-log
path: kubectl-ko-log.tar
name: k8s-conformance-e2e-ko-log
path: k8s-conformance-e2e-ko-log.tar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
path: k8s-conformance-e2e-ko-log.tar
path: k8s-conformance-e2e-${{ matrix.mode }}-${{ matrix.ip-family }}-ko-log.tar

@changluyi changluyi force-pushed the add_kubectl_ko_log branch 2 times, most recently from ce0594d to 75778b4 Compare March 15, 2023 08:27
@changluyi changluyi merged commit 0b8e534 into master Mar 15, 2023
@changluyi changluyi deleted the add_kubectl_ko_log branch March 15, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ko can collect all component logs for further analysis
3 participants