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

crictl: add Runtime column for RuntimeHandler #600

Merged
merged 1 commit into from
May 5, 2020

Conversation

fuweid
Copy link
Contributor

@fuweid fuweid commented May 2, 2020

If the RuntimeHandler is empty, show (default) as CRI's default runtime.

Signed-off-by: Wei Fu fuweid89@gmail.com

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label May 2, 2020
@k8s-ci-robot k8s-ci-robot requested review from feiskyer and yujuhong May 2, 2020 14:32
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 2, 2020
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

Just a formatting nit, otherwise LGTM

columnName = "NAME"
columnAttempt = "ATTEMPT"
columnPodID = "POD ID"
columnPodRuntime = "Runtime"
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
columnPodRuntime = "Runtime"
columnPodRuntime = "RUNTIME"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated with the changes: Show Runtime when crictl pods -v.

+       columnPodRuntime = "RUNTIME"

+               fmt.Printf("%s: %s\n",
+                       strings.Title(strings.ToLower(columnPodRuntime)),
+                       getSandboxesRuntimeHandler(pod))
+

PTAL. Thanks!

If the RuntimeHandler is empty, show (default) as CRI's default runtime.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
@fuweid fuweid force-pushed the add-runtime-column branch from 923dd0c to 57e7a0d Compare May 4, 2020 13:02
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@feiskyer feiskyer left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 5, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: feiskyer, fuweid

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 5, 2020
@k8s-ci-robot k8s-ci-robot merged commit f3a474a into kubernetes-sigs:master May 5, 2020
@fuweid fuweid deleted the add-runtime-column branch May 5, 2020 11:58
@fuweid
Copy link
Contributor Author

fuweid commented May 5, 2020

Thanks @feiskyer @saschagrunert for the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants