Repository: kubernetes-sigs/kwok
Pull request #136 (2022-12-06 03:56:52)

fix stylecheck in golangci.yaml
<!--  Thanks for sending a pull request!  Here are some tips for you:

1. If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide/first-contribution.md#your-first-contribution and developer guide https://git.k8s.io/community/contributors/devel/development.md#development-guide
2. Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request. For reference on required PR/issue labels, read here:
https://git.k8s.io/community/contributors/devel/sig-release/release.md#issuepr-kind-label
3. Ensure you have added or ran the appropriate tests for your PR: https://git.k8s.io/community/contributors/devel/sig-testing/testing.md
4. If you want *faster* PR reviews, read how: https://git.k8s.io/community/contributors/guide/pull-requests.md#best-practices-for-faster-reviews
5. If the PR is unfinished, see how to mark it: https://git.k8s.io/community/contributors/guide/pull-requests.md#marking-unfinished-pull-requests
-->

#### What type of PR is this?

<!--
Add one of the following kinds:
/kind bug
/kind cleanup
/kind documentation
/kind feature

Optionally add one or more of the following kinds if applicable:
/kind api-change
/kind deprecation
/kind failing-test
/kind flake
/kind regression
-->

/kind cleanup

#### What this PR does / why we need it:

#### Which issue(s) this PR fixes:
<!--
*Automatically closes linked issue when PR is merged.
Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`.
_If PR is about `failing-tests or flakes`, please post the related issues/tests in a comment and do not use `Fixes`_*
-->
xref #107

#### Special notes for your reviewer:

#### Does this PR introduce a user-facing change?
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".

For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
-->
```release-note

```

#### Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

<!--
This section can be blank if this pull request does not require a release note.

When adding links which point to resources within git repositories, like
KEPs or supporting documentation, please reference a specific commit and avoid
linking directly to the master branch. This ensures that links reference a
specific point in time, rather than a document that may change over time.

See here for guidance on getting permanent links to files: https://help.github.com/en/articles/getting-permanent-links-to-files

Please use the following format for linking documentation:
- [KEP]: <link>
- [Usage]: <link>
- [Other doc]: <link>
-->
```docs

```


k8s-ci-robot: [APPROVALNOTIFIER] This PR is **NOT APPROVED**

This pull-request has been approved by: *<a href="https://github.com/kubernetes-sigs/kwok/pull/136#" title="Author self-approved">wlp1153468871</a>*
**Once this PR has been reviewed and has the lgtm label**, please assign wzshiming for approval by writing `/assign @wzshiming` in a comment. For more information see [the Kubernetes Code Review Process](https://git.k8s.io/community/contributors/guide/owners.md#the-code-review-process).

The full list of commands accepted by this bot can be found [here](https://go.k8s.io/bot-commands?repo=kubernetes-sigs%2Fkwok).

<details open>
Needs approval from an approver in each of these files:

- **[OWNERS](https://github.com/kubernetes-sigs/kwok/blob/main/OWNERS)**

Approvers can indicate their approval by writing `/approve` in a comment
Approvers can cancel approval by writing `/approve cancel` in a comment
</details>
<!-- META={"approvers":["wzshiming"]} -->
k8s-ci-robot: Welcome @wlp1153468871! <br><br>It looks like this is your first PR to <a href='https://github.com/kubernetes-sigs/kwok'>kubernetes-sigs/kwok</a> 🎉. Please refer to our [pull request process documentation](https://git.k8s.io/community/contributors/guide/pull-requests.md) to help your PR have a smooth ride to approval. <br><br>You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. [Here is the bot commands documentation](https://go.k8s.io/bot-commands). <br><br>You can also check if kubernetes-sigs/kwok has [its own contribution guidelines](https://github.com/kubernetes-sigs/kwok/tree/master/CONTRIBUTING.md). <br><br>You may want to refer to our [testing guide](https://git.k8s.io/community/contributors/devel/sig-testing/testing.md) if you run into trouble with your tests not passing. <br><br>If you are having difficulty getting your pull request seen, please follow the [recommended escalation practices](https://github.com/kubernetes/community/blob/master/contributors/guide/pull-requests.md#why-is-my-pull-request-not-getting-reviewed). Also, for tips and tricks in the contribution process you may want to read the [Kubernetes contributor cheat sheet](https://git.k8s.io/community/contributors/guide/contributor-cheatsheet/README.md). We want to make sure your contribution gets all the attention it needs! <br><br>Thank you, and welcome to Kubernetes. :smiley:
k8s-ci-robot: Hi @wlp1153468871. Thanks for your PR.

I'm waiting for a [kubernetes-sigs](https://github.com/orgs/kubernetes-sigs/people) member to verify that this patch is reasonable to test. If it is, they should reply with `/ok-to-test` on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should [join the org](https://git.k8s.io/community/community-membership.md#member) to skip this step.

Once the patch is verified, the new status will be reflected by the `ok-to-test` label.

I understand the commands that are listed [here](https://go.k8s.io/bot-commands?repo=kubernetes-sigs%2Fkwok).

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
</details>

wzshiming: /ok-to-test
k8s-ci-robot: @wlp1153468871: The following test **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-verify-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1599976616274956288) | true | `/test pull-kwok-verify-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
wzshiming: /kind cleanup
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-verify-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1599976616274956288) | true | `/test pull-kwok-verify-main`
pull-kwok-unit-test-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-unit-test-main/1599976616371425280) | true | `/test pull-kwok-unit-test-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-verify-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1599976616274956288) | true | `/test pull-kwok-verify-main`
pull-kwok-unit-test-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-unit-test-main/1599976616371425280) | true | `/test pull-kwok-unit-test-main`
pull-kwok-e2e-test-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1599976616417562624) | true | `/test pull-kwok-e2e-test-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-unit-test-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-unit-test-main/1599976616371425280) | true | `/test pull-kwok-unit-test-main`
pull-kwok-e2e-test-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1599976616417562624) | true | `/test pull-kwok-e2e-test-main`
pull-kwok-verify-main | 4120077ae1624c1b28c58ff9dcea8a207537b9ea | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1599993579646750720) | true | `/test pull-kwok-verify-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-e2e-test-main | 96f97528cc6f74ca13e4c2e4993905d8199557a2 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1599976616417562624) | true | `/test pull-kwok-e2e-test-main`
pull-kwok-verify-main | 444073b5f1d4f2ce0c572c843b68f3e1d25a1e69 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1599995082272935936) | true | `/test pull-kwok-verify-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-verify-main | 444073b5f1d4f2ce0c572c843b68f3e1d25a1e69 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1599995082272935936) | true | `/test pull-kwok-verify-main`
pull-kwok-e2e-test-main | 444073b5f1d4f2ce0c572c843b68f3e1d25a1e69 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1599995082415542272) | true | `/test pull-kwok-e2e-test-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-e2e-test-main | 444073b5f1d4f2ce0c572c843b68f3e1d25a1e69 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1599995082415542272) | true | `/test pull-kwok-e2e-test-main`
pull-kwok-verify-main | 8f5c07cc0bf09b046d02de05166333e044da298f | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1600020527341113344) | true | `/test pull-kwok-verify-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following test **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-verify-main | d80277d9869e55b381dd7d3aca551b2f301cc9e1 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1600051086046007296) | true | `/test pull-kwok-verify-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following test **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-verify-main | 384a76988ac0e60b9b889095cf171aa2ce07295e | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1600337522506862592) | true | `/test pull-kwok-verify-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
wzshiming: Please check the validation, there are some cases that do not pass
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-verify-main | 384a76988ac0e60b9b889095cf171aa2ce07295e | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1600337522506862592) | true | `/test pull-kwok-verify-main`
pull-kwok-e2e-test-main | 384a76988ac0e60b9b889095cf171aa2ce07295e | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1600337522678829056) | true | `/test pull-kwok-e2e-test-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-e2e-test-main | 384a76988ac0e60b9b889095cf171aa2ce07295e | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1600337522678829056) | true | `/test pull-kwok-e2e-test-main`
pull-kwok-verify-main | 2d4645e13b522fd85ece8c30f19ce617c97f3d70 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1600410067138514944) | true | `/test pull-kwok-verify-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
wzshiming: https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1600410067138514944

The new file header is not licensed
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-verify-main | 2d4645e13b522fd85ece8c30f19ce617c97f3d70 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1600410067138514944) | true | `/test pull-kwok-verify-main`
pull-kwok-e2e-test-main | 2d4645e13b522fd85ece8c30f19ce617c97f3d70 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1600410067276926976) | true | `/test pull-kwok-e2e-test-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
wzshiming: Squash all the commits
k8s-ci-robot: @wlp1153468871: PR needs rebase.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
</details>
k8s-ci-robot: @wlp1153468871: The following test **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-e2e-test-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1601055112652918784) | true | `/test pull-kwok-e2e-test-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-e2e-test-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1601055112652918784) | true | `/test pull-kwok-e2e-test-main`
pull-kwok-verify-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1601055112522895360) | true | `/test pull-kwok-verify-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-e2e-test-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1601055112652918784) | true | `/test pull-kwok-e2e-test-main`
pull-kwok-verify-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1601055112522895360) | true | `/test pull-kwok-verify-main`
pull-kwok-build-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-build-main/1601055112564838400) | true | `/test pull-kwok-build-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-e2e-test-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1601055112652918784) | true | `/test pull-kwok-e2e-test-main`
pull-kwok-verify-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1601055112522895360) | true | `/test pull-kwok-verify-main`
pull-kwok-build-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-build-main/1601055112564838400) | true | `/test pull-kwok-build-main`
pull-kwok-unit-test-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-unit-test-main/1601055112606781440) | true | `/test pull-kwok-unit-test-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->
k8s-ci-robot: @wlp1153468871: The following tests **failed**, say `/retest` to rerun all failed tests or `/retest-required` to rerun all mandatory failed tests:

Test name | Commit | Details | Required | Rerun command
--- | --- | --- | --- | ---
pull-kwok-e2e-test-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-e2e-test-main/1601055112652918784) | true | `/test pull-kwok-e2e-test-main`
pull-kwok-verify-main | 44a65ab00dd0e56a076f1d4ef3ae0b652f9608b3 | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-verify-main/1601055112522895360) | true | `/test pull-kwok-verify-main`
pull-kwok-unit-test-main | a5eebd01b2e94accb9c187015ab524b89533871f | [link](https://prow.k8s.io/view/gs/kubernetes-jenkins/pr-logs/pull/kubernetes-sigs_kwok/136/pull-kwok-unit-test-main/1601130372014280704) | true | `/test pull-kwok-unit-test-main`

[Full PR test history](https://prow.k8s.io/pr-history?org=kubernetes-sigs&repo=kwok&pr=136). [Your PR dashboard](https://prow.k8s.io/pr?query=is%3Apr%20state%3Aopen%20author%3Awlp1153468871). Please help us cut down on flakes by [linking to](https://git.k8s.io/community/contributors/devel/sig-testing/flaky-tests.md#filing-issues-for-flaky-tests) an [open issue](https://github.com/kubernetes-sigs/kwok/issues?q=is:issue+is:open) when you hit one in your PR.

<details>

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md).  If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository. I understand the commands that are listed [here](https://go.k8s.io/bot-commands).
</details>
<!-- test report -->

Patch:
diff --git a/.golangci.yaml b/.golangci.yaml
index edccfb90..277f616f 100644
--- a/.golangci.yaml
+++ b/.golangci.yaml
@@ -28,7 +28,7 @@ linters:
     # - revive
     # - rowserrcheck
     - staticcheck
-    # - stylecheck
+    - stylecheck
     - typecheck
     - unconvert
     - unparam
@@ -62,6 +62,8 @@ linters-settings:
     go: "1.19"
   stylecheck:
     go: "1.19"
+    # STxxxx checks in https://staticcheck.io/docs/configuration/options/#checks
+    checks: [ "all", "-ST1000", "-ST1003" ]
   depguard:
     include-go-root: true
     packages:
diff --git a/pkg/consts/consts.go b/pkg/consts/consts.go
index ed52bba2..cbd83204 100644
--- a/pkg/consts/consts.go
+++ b/pkg/consts/consts.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package consts defines the constants for building the project.
 package consts
 
 var (
diff --git a/pkg/kwok/cmd/root.go b/pkg/kwok/cmd/root.go
index 47a3b9fc..a1b9ab68 100644
--- a/pkg/kwok/cmd/root.go
+++ b/pkg/kwok/cmd/root.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package cmd defines a root command for the kwok.
 package cmd
 
 import (
@@ -199,8 +200,8 @@ func Serve(ctx context.Context, address string) {
 }
 
 // buildConfigFromFlags is a helper function that builds configs from a master url or a kubeconfig filepath.
-func buildConfigFromFlags(ctx context.Context, masterUrl, kubeconfigPath string) (*rest.Config, error) {
-	if kubeconfigPath == "" && masterUrl == "" {
+func buildConfigFromFlags(ctx context.Context, masterURL, kubeconfigPath string) (*rest.Config, error) {
+	if kubeconfigPath == "" && masterURL == "" {
 		logger := log.FromContext(ctx)
 		logger.Warn("Neither --kubeconfig nor --master was specified")
 		logger.Info("Using the inClusterConfig")
@@ -213,7 +214,7 @@ func buildConfigFromFlags(ctx context.Context, masterUrl, kubeconfigPath string)
 	}
 	return clientcmd.NewNonInteractiveDeferredLoadingClientConfig(
 		&clientcmd.ClientConfigLoadingRules{ExplicitPath: kubeconfigPath},
-		&clientcmd.ConfigOverrides{ClusterInfo: clientcmdapi.Cluster{Server: masterUrl}}).ClientConfig()
+		&clientcmd.ConfigOverrides{ClusterInfo: clientcmdapi.Cluster{Server: masterURL}}).ClientConfig()
 }
 
 func newClientset(ctx context.Context, master, kubeconfig string) (kubernetes.Interface, error) {
diff --git a/pkg/kwok/controllers/doc.go b/pkg/kwok/controllers/doc.go
new file mode 100644
index 00000000..b2b31ea4
--- /dev/null
+++ b/pkg/kwok/controllers/doc.go
@@ -0,0 +1,18 @@
+/*
+Copyright 2022 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// Package controllers is the package that contains the core logic on pods and nodes simulation.
+package controllers
diff --git a/pkg/kwok/controllers/node_controller.go b/pkg/kwok/controllers/node_controller.go
index 8204f9a4..45d03586 100644
--- a/pkg/kwok/controllers/node_controller.go
+++ b/pkg/kwok/controllers/node_controller.go
@@ -354,7 +354,7 @@ func (c *NodeController) LockNode(ctx context.Context, nodeName string) error {
 }
 
 func (c *NodeController) configureNode(node *corev1.Node) ([]byte, error) {
-	patch, err := c.renderer.renderToJson(c.nodeStatusTemplate, node)
+	patch, err := c.renderer.renderToJSON(c.nodeStatusTemplate, node)
 	if err != nil {
 		return nil, err
 	}
@@ -391,7 +391,7 @@ func (c *NodeController) configureNode(node *corev1.Node) ([]byte, error) {
 }
 
 func (c *NodeController) configureHeartbeatNode(node *corev1.Node) ([]byte, error) {
-	patch, err := c.renderer.renderToJson(c.nodeHeartbeatTemplate, node)
+	patch, err := c.renderer.renderToJSON(c.nodeHeartbeatTemplate, node)
 	if err != nil {
 		return nil, err
 	}
diff --git a/pkg/kwok/controllers/pod_controller.go b/pkg/kwok/controllers/pod_controller.go
index bd54e9fc..4e12ba9e 100644
--- a/pkg/kwok/controllers/pod_controller.go
+++ b/pkg/kwok/controllers/pod_controller.go
@@ -402,7 +402,7 @@ func (c *PodController) configurePod(pod *corev1.Pod) ([]byte, error) {
 }
 
 func (c *PodController) computePatchData(pod *corev1.Pod, temp string) ([]byte, error) {
-	patch, err := c.renderer.renderToJson(temp, pod)
+	patch, err := c.renderer.renderToJSON(temp, pod)
 	if err != nil {
 		return nil, err
 	}
diff --git a/pkg/kwok/controllers/renderer.go b/pkg/kwok/controllers/renderer.go
index 8a428ac0..8f6faf1a 100644
--- a/pkg/kwok/controllers/renderer.go
+++ b/pkg/kwok/controllers/renderer.go
@@ -45,8 +45,8 @@ func newRenderer(funcMap template.FuncMap) *renderer {
 	}
 }
 
-// renderToJson renders the template with the given text and original object.
-func (r *renderer) renderToJson(text string, original interface{}) ([]byte, error) {
+// renderToJSON renders the template with the given text and original object.
+func (r *renderer) renderToJSON(text string, original interface{}) ([]byte, error) {
 	text = strings.TrimSpace(text)
 	v, ok := r.cache.Load(text)
 	if !ok {
diff --git a/pkg/kwok/controllers/templates/templates.go b/pkg/kwok/controllers/templates/templates.go
index 77c620aa..8b2700e4 100644
--- a/pkg/kwok/controllers/templates/templates.go
+++ b/pkg/kwok/controllers/templates/templates.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package templates contains node and pod templates used by controllers.
 package templates
 
 import (
diff --git a/pkg/kwok/controllers/utils.go b/pkg/kwok/controllers/utils.go
index 8fe53198..aa4b49b0 100644
--- a/pkg/kwok/controllers/utils.go
+++ b/pkg/kwok/controllers/utils.go
@@ -34,7 +34,7 @@ func parseCIDR(s string) (*net.IPNet, error) {
 	return ipnet, nil
 }
 
-func addIp(ip net.IP, add uint64) net.IP {
+func addIP(ip net.IP, add uint64) net.IP {
 	if len(ip) < 8 {
 		return ip
 	}
@@ -67,7 +67,7 @@ func newIPPool(cidr *net.IPNet) *ipPool {
 
 func (i *ipPool) new() string {
 	for {
-		ip := addIp(i.cidr.IP, i.index).String()
+		ip := addIP(i.cidr.IP, i.index).String()
 		i.index++
 
 		if _, ok := i.used[ip]; ok {
diff --git a/pkg/kwokctl/cmd/create/cluster/cluster.go b/pkg/kwokctl/cmd/create/cluster/cluster.go
index 172937ce..1fb3ea85 100644
--- a/pkg/kwokctl/cmd/create/cluster/cluster.go
+++ b/pkg/kwokctl/cmd/create/cluster/cluster.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package cluster contains a command to create a cluster.
 package cluster
 
 import (
diff --git a/pkg/kwokctl/cmd/create/create.go b/pkg/kwokctl/cmd/create/create.go
index c1759202..cb90e97e 100644
--- a/pkg/kwokctl/cmd/create/create.go
+++ b/pkg/kwokctl/cmd/create/create.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package create defines a parent command for cluster creation.
 package create
 
 import (
diff --git a/pkg/kwokctl/cmd/delete/cluster/cluster.go b/pkg/kwokctl/cmd/delete/cluster/cluster.go
index e93f8435..61ac6018 100644
--- a/pkg/kwokctl/cmd/delete/cluster/cluster.go
+++ b/pkg/kwokctl/cmd/delete/cluster/cluster.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package cluster contains a command to delete a cluster.
 package cluster
 
 import (
diff --git a/pkg/kwokctl/cmd/delete/delete.go b/pkg/kwokctl/cmd/delete/delete.go
index b50dc289..6a5b4254 100644
--- a/pkg/kwokctl/cmd/delete/delete.go
+++ b/pkg/kwokctl/cmd/delete/delete.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package delete defines a parent command for cluster deletion.
 package delete
 
 import (
diff --git a/pkg/kwokctl/cmd/etcdctl/etcdctl.go b/pkg/kwokctl/cmd/etcdctl/etcdctl.go
index e8aad3bd..24b9c52b 100644
--- a/pkg/kwokctl/cmd/etcdctl/etcdctl.go
+++ b/pkg/kwokctl/cmd/etcdctl/etcdctl.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package etcdctl provides a method for users to use the etcdctl binary in a cluster.
 package etcdctl
 
 import (
diff --git a/pkg/kwokctl/cmd/get/artifacts/artifacts.go b/pkg/kwokctl/cmd/get/artifacts/artifacts.go
index 795f7553..3f76c4cf 100644
--- a/pkg/kwokctl/cmd/get/artifacts/artifacts.go
+++ b/pkg/kwokctl/cmd/get/artifacts/artifacts.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package artifacts contains a command to list binaries or images used by a cluster.
 package artifacts
 
 import (
diff --git a/pkg/kwokctl/cmd/get/clusters/clusters.go b/pkg/kwokctl/cmd/get/clusters/clusters.go
index bcce301a..d72f7267 100644
--- a/pkg/kwokctl/cmd/get/clusters/clusters.go
+++ b/pkg/kwokctl/cmd/get/clusters/clusters.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package clusters contains a command to list existing clusters.
 package clusters
 
 import (
diff --git a/pkg/kwokctl/cmd/get/get.go b/pkg/kwokctl/cmd/get/get.go
index 34acaa5b..fc38a592 100644
--- a/pkg/kwokctl/cmd/get/get.go
+++ b/pkg/kwokctl/cmd/get/get.go
@@ -14,6 +14,8 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package get defines a parent command for getting artifacts,
+// clusters and kubeconfig.
 package get
 
 import (
diff --git a/pkg/kwokctl/cmd/get/kubeconfig/kubeconfig.go b/pkg/kwokctl/cmd/get/kubeconfig/kubeconfig.go
index da1424b4..1676bf0c 100644
--- a/pkg/kwokctl/cmd/get/kubeconfig/kubeconfig.go
+++ b/pkg/kwokctl/cmd/get/kubeconfig/kubeconfig.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package kubeconfig contains a command to prints cluster kubeconfig
 package kubeconfig
 
 import (
diff --git a/pkg/kwokctl/cmd/kubectl/kubectl.go b/pkg/kwokctl/cmd/kubectl/kubectl.go
index 6fdddafc..ded9dc45 100644
--- a/pkg/kwokctl/cmd/kubectl/kubectl.go
+++ b/pkg/kwokctl/cmd/kubectl/kubectl.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package kubectl contains a command to use the kubectl in a cluster.
 package kubectl
 
 import (
diff --git a/pkg/kwokctl/cmd/logs/logs.go b/pkg/kwokctl/cmd/logs/logs.go
index 44e960e7..1a7908ce 100644
--- a/pkg/kwokctl/cmd/logs/logs.go
+++ b/pkg/kwokctl/cmd/logs/logs.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package logs contains a command to log a component of a cluster.
 package logs
 
 import (
diff --git a/pkg/kwokctl/cmd/root.go b/pkg/kwokctl/cmd/root.go
index 7fd2bb0c..9f1f314f 100644
--- a/pkg/kwokctl/cmd/root.go
+++ b/pkg/kwokctl/cmd/root.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package cmd defines a root command for the kwokctl.
 package cmd
 
 import (
diff --git a/pkg/kwokctl/cmd/snapshot/restore/restore.go b/pkg/kwokctl/cmd/snapshot/restore/restore.go
index 0e78c11c..77c1aaff 100644
--- a/pkg/kwokctl/cmd/snapshot/restore/restore.go
+++ b/pkg/kwokctl/cmd/snapshot/restore/restore.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package restore provides a command to restore the snapshot of a cluster.
 package restore
 
 import (
diff --git a/pkg/kwokctl/cmd/snapshot/save/save.go b/pkg/kwokctl/cmd/snapshot/save/save.go
index a23f2412..378ee58a 100644
--- a/pkg/kwokctl/cmd/snapshot/save/save.go
+++ b/pkg/kwokctl/cmd/snapshot/save/save.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package save provides a command to save the snapshot of a cluster.
 package save
 
 import (
diff --git a/pkg/kwokctl/cmd/snapshot/snapshot.go b/pkg/kwokctl/cmd/snapshot/snapshot.go
index 0307f3cc..fbe5ffbd 100644
--- a/pkg/kwokctl/cmd/snapshot/snapshot.go
+++ b/pkg/kwokctl/cmd/snapshot/snapshot.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package snapshot contains a parent command which snapshots one of cluster.
 package snapshot
 
 import (
diff --git a/pkg/kwokctl/k8s/doc.go b/pkg/kwokctl/k8s/doc.go
new file mode 100644
index 00000000..1b7cc708
--- /dev/null
+++ b/pkg/kwokctl/k8s/doc.go
@@ -0,0 +1,18 @@
+/*
+Copyright 2022 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// Package k8s contains some helper functions related to the Kuberentes.
+package k8s
diff --git a/pkg/kwokctl/pki/doc.go b/pkg/kwokctl/pki/doc.go
new file mode 100644
index 00000000..d23f713d
--- /dev/null
+++ b/pkg/kwokctl/pki/doc.go
@@ -0,0 +1,18 @@
+/*
+Copyright 2022 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// Package pki is the package that provides functions to generate certificates
+package pki
diff --git a/pkg/kwokctl/runtime/binary/doc.go b/pkg/kwokctl/runtime/binary/doc.go
new file mode 100644
index 00000000..a899c7dc
--- /dev/null
+++ b/pkg/kwokctl/runtime/binary/doc.go
@@ -0,0 +1,18 @@
+/*
+Copyright 2022 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// Package binary implements the runtime.Runtime interface using the binaries.
+package binary
diff --git a/pkg/kwokctl/runtime/compose/doc.go b/pkg/kwokctl/runtime/compose/doc.go
new file mode 100644
index 00000000..357dd3a0
--- /dev/null
+++ b/pkg/kwokctl/runtime/compose/doc.go
@@ -0,0 +1,18 @@
+/*
+Copyright 2022 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// Package compose implements the runtime.Runtime interface using the image with compose file.
+package compose
diff --git a/pkg/kwokctl/runtime/doc.go b/pkg/kwokctl/runtime/doc.go
new file mode 100644
index 00000000..a050043a
--- /dev/null
+++ b/pkg/kwokctl/runtime/doc.go
@@ -0,0 +1,18 @@
+/*
+Copyright 2022 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// Package runtime defines the interface of a cluster operation and providers a register method.
+package runtime
diff --git a/pkg/kwokctl/runtime/kind/doc.go b/pkg/kwokctl/runtime/kind/doc.go
new file mode 100644
index 00000000..4efcafc8
--- /dev/null
+++ b/pkg/kwokctl/runtime/kind/doc.go
@@ -0,0 +1,19 @@
+/*
+Copyright 2022 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// Package kind implements the runtime.Runtime interface using the kind.
+
+package kind
diff --git a/pkg/log/doc.go b/pkg/log/doc.go
new file mode 100644
index 00000000..97aa5fb7
--- /dev/null
+++ b/pkg/log/doc.go
@@ -0,0 +1,18 @@
+/*
+Copyright 2022 The Kubernetes Authors.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+// Package log wrappers slog for the kwok and kwokctl
+package log
diff --git a/pkg/utils/signals/signals.go b/pkg/utils/signals/signals.go
index b7bdf6ff..f650007d 100644
--- a/pkg/utils/signals/signals.go
+++ b/pkg/utils/signals/signals.go
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
 limitations under the License.
 */
 
+// Package signals is the package that provide helper functions to receive signals from the system.
 package signals
 
 import (


Test patch:
diff --git a/pkg/kwok/controllers/renderer_test.go b/pkg/kwok/controllers/renderer_test.go
index 5fb471f5..4526eca4 100644
--- a/pkg/kwok/controllers/renderer_test.go
+++ b/pkg/kwok/controllers/renderer_test.go
@@ -69,7 +69,7 @@ func TestRenderToJson(t *testing.T) {
 	for _, tc := range testCases {
 		t.Run(tc.name, func(t *testing.T) {
 			r := newRenderer(tc.funcMap)
-			actual, err := r.renderToJson(tc.templText, tc.original)
+			actual, err := r.renderToJSON(tc.templText, tc.original)
 			if err != nil {
 				t.Fatal(err)
 			}