Repository: kubernetes-sigs/kwok
Pull request #151 (2022-12-12 06:11:02)

Add periodic older version compatibility tests
<!--  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
-->

#### 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`_*
-->
Fixes #

#### 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

```



Patch:
diff --git a/.golangci.yaml b/.golangci.yaml
index 277f616f..edccfb90 100644
--- a/.golangci.yaml
+++ b/.golangci.yaml
@@ -28,7 +28,7 @@ linters:
     # - revive
     # - rowserrcheck
     - staticcheck
-    - stylecheck
+    # - stylecheck
     - typecheck
     - unconvert
     - unparam
@@ -62,8 +62,6 @@ 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/hack/supported_releases.sh b/hack/supported_releases.sh
index 3272e607..8a152730 100755
--- a/hack/supported_releases.sh
+++ b/hack/supported_releases.sh
@@ -109,7 +109,7 @@ function send_pr() {
   fi
 
   body="
-\`\`\` console
+\`\`\` diff
 
 ${diff_data}
 
@@ -131,7 +131,7 @@ function main() {
   fi
 
   record_data="$(record_releases)"
-  out="$(bump ${record_data} ${latest_data} | sort --reverse --version-sort | head -n 6)"
+  out="$(bump ${record_data} ${latest_data} | sort --reverse --version-sort)"
 
   if [[ "${out}" == "$(record_releases)" ]]; then
     echo "No update"
diff --git a/pkg/consts/consts.go b/pkg/consts/consts.go
index cbd83204..ed52bba2 100644
--- a/pkg/consts/consts.go
+++ b/pkg/consts/consts.go
@@ -14,7 +14,6 @@ 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 a1b9ab68..47a3b9fc 100644
--- a/pkg/kwok/cmd/root.go
+++ b/pkg/kwok/cmd/root.go
@@ -14,7 +14,6 @@ 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 (
@@ -200,8 +199,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")
@@ -214,7 +213,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
deleted file mode 100644
index b2b31ea4..00000000
--- a/pkg/kwok/controllers/doc.go
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-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 45d03586..8204f9a4 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 4e12ba9e..bd54e9fc 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 8f6faf1a..8a428ac0 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 8b2700e4..77c620aa 100644
--- a/pkg/kwok/controllers/templates/templates.go
+++ b/pkg/kwok/controllers/templates/templates.go
@@ -14,7 +14,6 @@ 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 aa4b49b0..8fe53198 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 1fb3ea85..172937ce 100644
--- a/pkg/kwokctl/cmd/create/cluster/cluster.go
+++ b/pkg/kwokctl/cmd/create/cluster/cluster.go
@@ -14,7 +14,6 @@ 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 cb90e97e..c1759202 100644
--- a/pkg/kwokctl/cmd/create/create.go
+++ b/pkg/kwokctl/cmd/create/create.go
@@ -14,7 +14,6 @@ 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 61ac6018..e93f8435 100644
--- a/pkg/kwokctl/cmd/delete/cluster/cluster.go
+++ b/pkg/kwokctl/cmd/delete/cluster/cluster.go
@@ -14,7 +14,6 @@ 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 6a5b4254..b50dc289 100644
--- a/pkg/kwokctl/cmd/delete/delete.go
+++ b/pkg/kwokctl/cmd/delete/delete.go
@@ -14,7 +14,6 @@ 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 24b9c52b..e8aad3bd 100644
--- a/pkg/kwokctl/cmd/etcdctl/etcdctl.go
+++ b/pkg/kwokctl/cmd/etcdctl/etcdctl.go
@@ -14,7 +14,6 @@ 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 3f76c4cf..795f7553 100644
--- a/pkg/kwokctl/cmd/get/artifacts/artifacts.go
+++ b/pkg/kwokctl/cmd/get/artifacts/artifacts.go
@@ -14,7 +14,6 @@ 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 d72f7267..bcce301a 100644
--- a/pkg/kwokctl/cmd/get/clusters/clusters.go
+++ b/pkg/kwokctl/cmd/get/clusters/clusters.go
@@ -14,7 +14,6 @@ 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 fc38a592..34acaa5b 100644
--- a/pkg/kwokctl/cmd/get/get.go
+++ b/pkg/kwokctl/cmd/get/get.go
@@ -14,8 +14,6 @@ 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 1676bf0c..da1424b4 100644
--- a/pkg/kwokctl/cmd/get/kubeconfig/kubeconfig.go
+++ b/pkg/kwokctl/cmd/get/kubeconfig/kubeconfig.go
@@ -14,7 +14,6 @@ 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 ded9dc45..6fdddafc 100644
--- a/pkg/kwokctl/cmd/kubectl/kubectl.go
+++ b/pkg/kwokctl/cmd/kubectl/kubectl.go
@@ -14,7 +14,6 @@ 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 1a7908ce..44e960e7 100644
--- a/pkg/kwokctl/cmd/logs/logs.go
+++ b/pkg/kwokctl/cmd/logs/logs.go
@@ -14,7 +14,6 @@ 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 9f1f314f..7fd2bb0c 100644
--- a/pkg/kwokctl/cmd/root.go
+++ b/pkg/kwokctl/cmd/root.go
@@ -14,7 +14,6 @@ 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 77c1aaff..0e78c11c 100644
--- a/pkg/kwokctl/cmd/snapshot/restore/restore.go
+++ b/pkg/kwokctl/cmd/snapshot/restore/restore.go
@@ -14,7 +14,6 @@ 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 378ee58a..a23f2412 100644
--- a/pkg/kwokctl/cmd/snapshot/save/save.go
+++ b/pkg/kwokctl/cmd/snapshot/save/save.go
@@ -14,7 +14,6 @@ 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 fbe5ffbd..0307f3cc 100644
--- a/pkg/kwokctl/cmd/snapshot/snapshot.go
+++ b/pkg/kwokctl/cmd/snapshot/snapshot.go
@@ -14,7 +14,6 @@ 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
deleted file mode 100644
index 1b7cc708..00000000
--- a/pkg/kwokctl/k8s/doc.go
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-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
deleted file mode 100644
index d23f713d..00000000
--- a/pkg/kwokctl/pki/doc.go
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-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
deleted file mode 100644
index a899c7dc..00000000
--- a/pkg/kwokctl/runtime/binary/doc.go
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-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
deleted file mode 100644
index 357dd3a0..00000000
--- a/pkg/kwokctl/runtime/compose/doc.go
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-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
deleted file mode 100644
index a050043a..00000000
--- a/pkg/kwokctl/runtime/doc.go
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-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
deleted file mode 100644
index 4efcafc8..00000000
--- a/pkg/kwokctl/runtime/kind/doc.go
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
-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
deleted file mode 100644
index 97aa5fb7..00000000
--- a/pkg/log/doc.go
+++ /dev/null
@@ -1,18 +0,0 @@
-/*
-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 f650007d..b7bdf6ff 100644
--- a/pkg/utils/signals/signals.go
+++ b/pkg/utils/signals/signals.go
@@ -14,7 +14,6 @@ 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 (
diff --git a/supported_releases.txt b/supported_releases.txt
index 375ebb90..ec9b90ad 100644
--- a/supported_releases.txt
+++ b/supported_releases.txt
@@ -4,3 +4,14 @@
 1.23.13
 1.22.15
 1.21.14
+1.20.15
+1.19.16
+1.18.20
+1.17.17
+1.16.15
+1.15.12
+1.14.10
+1.13.12
+1.12.10
+1.11.10
+1.10.13


Test patch:
diff --git a/.github/workflows/cron-test.yaml b/.github/workflows/cron-test.yaml
new file mode 100644
index 00000000..8f399a1e
--- /dev/null
+++ b/.github/workflows/cron-test.yaml
@@ -0,0 +1,65 @@
+name: Cron Test
+
+on:
+  schedule:
+    - cron: '0 0 * * *'
+  workflow_dispatch:
+
+env:
+  LAST_RELEASE_SIZE: "20"
+  DOCKER_CLI_EXPERIMENTAL: "enabled"
+  CGO_ENABLED: "0"
+
+jobs:
+  test-kwokctl:
+    # https://docs.github.com/en/actions/using-jobs/using-concurrency
+    concurrency:
+      group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ matrix.os }}-${{ matrix.kwokctl-runtime }}
+      cancel-in-progress: true
+
+    # https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
+    strategy:
+      fail-fast: false
+      matrix:
+        os:
+          - ubuntu-latest
+        kwokctl-runtime:
+          - binary
+          - docker
+          - nerdctl
+
+    continue-on-error: false
+    runs-on: ${{ matrix.os }}
+    steps:
+      - uses: actions/checkout@v3
+      - name: Set up Go
+        uses: actions/setup-go@v2
+        with:
+          go-version: 1.19
+
+      - name: Install Buildx
+        if: ${{ matrix.kwokctl-runtime != 'binary' }}
+        shell: bash
+        run: |
+          ./hack/requirements.sh buildx
+          docker buildx version
+
+      - name: Install Nerdctl and Start Containerd
+        if: ${{ matrix.kwokctl-runtime == 'nerdctl' }}
+        shell: bash
+        run: |
+          curl -sSL https://github.com/containerd/nerdctl/releases/download/v1.0.0/nerdctl-full-1.0.0-linux-amd64.tar.gz -o - | sudo tar -xz -C /usr/local
+          sudo systemctl daemon-reload
+          sudo systemctl enable --now containerd
+          containerd-rootless-setuptool.sh install
+
+      - name: Install kubectl
+        shell: bash
+        run: |
+          ./hack/requirements.sh kubectl
+          kubectl version || :
+
+      - name: Test Workable
+        shell: bash
+        run: |
+          ./hack/e2e-test.sh kwokctl/kwokctl_${{ matrix.kwokctl-runtime }}
diff --git a/pkg/kwok/controllers/renderer_test.go b/pkg/kwok/controllers/renderer_test.go
index 4526eca4..5fb471f5 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)
 			}
diff --git a/test/kwokctl/helper.sh b/test/kwokctl/helper.sh
index 49f6ed4e..e273acda 100644
--- a/test/kwokctl/helper.sh
+++ b/test/kwokctl/helper.sh
@@ -31,8 +31,11 @@ function test_all() {
 export KWOK_CONTROLLER_BINARY="${DIR}/bin/kwok"
 export KWOK_CONTROLLER_IMAGE=local/kwok:test
 
+# Test only the latest releases of Kubernetes
+LAST_RELEASE_SIZE="${LAST_RELEASE_SIZE:-6}"
+
 function supported_releases() {
-  cat "${ROOT_DIR}/supported_releases.txt"
+  cat "${ROOT_DIR}/supported_releases.txt" | head -n "${LAST_RELEASE_SIZE}"
 }
 
 function build_kwokctl() {