Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the robot instructions of kubernetes?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces "what are the robot instructions of kubernetes". In daily operation, I believe that many people have doubts about the robot instructions of kubernetes. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the questions of "what are the robot instructions of kubernetes?" Next, please follow the editor to study!

Prow is a CI/CD system used by the kubernetes community and is based on kubernetes implementation. It provides a series of commands in / foo format for users to use. Using these instructions, you can get the robot to do the corresponding work, for example, when you submit a PR, you can use the / assign @ command to specify an owner to audit your PR.

When the developer submits PR (Pull Request) to the kubernetes community, the robot will automatically reply you and indicate the status of the current PR or tell you what to do next, and others will reply to some robot commands in your PR. Therefore, as a developer, it is necessary to clearly understand some commonly used commands.

Here are some of the more common commands.

Use case for failed re-run: / retest

As the name implies, this command is used to re-execute failed tests (sometimes automated tests fail due to environmental factors), and since only PR triggers automated tests, this command is used only in PR.

Examples of usage:

/ retest: restart the failed test

Conditions of use:

Can only be used for trusted PR, that is, PR containing ok-to-test tags

Anyone can use it.

Command effect:

Restart the failed test

The figure is as follows:

Manual trigger test purpose: / test

/ test is used to execute some or all of the test cases manually, some of which are not included in the scope of automated test cases and can be triggered manually if necessary.

Examples of usage:

/ test pull-kubernetes-bazel-test: start the pull-kubernetes-bazel-test test

/ test all: start all test cases

Restrictions:

Can only be used for trusted PR, that is, PR containing ok-to-test tags

Anyone can use it.

Command effect:

Start the specified test case

The figure is as follows:

Modify the title: / retitle looks good: / lgtm

Lgtm is an acronym for looks good to me and is used to indicate approval of a PR.

When a reviewer replies / lgtm in PR, it has two meanings: on the one hand, it approves the PR; on the other hand, it instructs the robot to tag lgtm in the PR. Having a lgtm tag is a necessary condition for the PR to be incorporated eventually.

The lgtm tag can also be undone, and when other reviewer or authors find that there are problems that need to be fixed, they can undo the tag by using / lgtm cancel.

Examples of usage:

/ lgtm: add lgtm tags to PR for use after code review

/ lgtm cancel: delete the lgtm tag

Restrictions:

Can only be used by community members

PR authors can use lgtm cancel

Command effect:

Add or remove lgtm tags to PR

The figure is as follows:

/ check-dco/check-cla/cc/assign/approve/auto-cc/bugzilla refresh/buildif (y | ier) / meow (vie) [CATegory] / (woof | bark | this-is- {fine | not-fine | unbearable}) / lint/remove-/hold [cancel] / remove-/close/reopen/ [remove-] lifecycle/milestone or / milestone clear/status (approved-for-milestone | in-progress | in-review) / override [context] / (pony) [pony] / project, / project Or / project clear/release-note-none/ [un] shrug/skip/ [remove -] stage/ok-to-test/joke

/ joke is a very interesting command that instructs the robot to tell a joke, but it doesn't do anything else.

Examples of usage:

/ joke

Restrictions:

Anyone can use it.

Command effect:

The robot replies with a joke and @ commands the initiator

The figure is as follows:

At this point, the study of "what are the robot instructions for kubernetes" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report