Repository: kubernetes-sigs/kubebuilder (language: go)

Issue:
KB is not failing for go versions not supported 
### What broke? What's expected?

Currently, the go version supported is 1.17.x. See that we check the versions supported but we have not been updating it:
- https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/plugins/golang/go_version_test.go#L128-L198 
- https://github.com/kubernetes-sigs/kubebuilder/blob/master/pkg/plugins/golang/go_version.go

We have been facing many issues because people are using versions < 1.17 so we need to fix it. 



### Reproducing this issue

Try to create an api with go version < 1.17

### KubeBuilder (CLI) Version

3.3.0

### PROJECT version

_No response_

### Plugin versions

_No response_

### Other versions

_No response_

### Extra Labels

_No response_


Discussion / hints:
E.g scenario: https://github.com/kubernetes-sigs/kubebuilder/issues/2527#issuecomment-1062429396 
Shows that we need to bump in : https://github.com/kubernetes-sigs/kubebuilder/blob/9155233cc2ade7699a7c1578d2eb7762155ed330/pkg/plugins/golang/v3/init.go#L38-L39 the min/max currently supported go versions : 1.17.0 >= to < 1.18 
We have to modify only the `v3/init.go` file right? The `v2/init.go` doesn't need modification if I am not wrong.
/assign @Ankit152
@camilamacedo86: GitHub didn't allow me to assign the following users: Ankit152.

Note that only [kubernetes-sigs members](https://github.com/orgs/kubernetes-sigs/people), repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see [the contributor guide](https://git.k8s.io/community/contributors/guide/first-contribution.md#issue-assignment-in-github)

<details>

In response to [this](https://github.com/kubernetes-sigs/kubebuilder/issues/2530#issuecomment-1066773357):

>/assign @Ankit152


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>
This issue has a PR already: https://github.com/kubernetes-sigs/kubebuilder/pull/2537
/assign

Fix patch:
diff --git a/pkg/plugins/golang/v3/init.go b/pkg/plugins/golang/v3/init.go
index 1b994e6abbd..40eebe6bfdc 100644
--- a/pkg/plugins/golang/v3/init.go
+++ b/pkg/plugins/golang/v3/init.go
@@ -35,8 +35,8 @@ import (
 
 // Variables and function to check Go version requirements.
 var (
-	goVerMin = golang.MustParse("go1.16")
-	goVerMax = golang.MustParse("go2.0alpha1")
+	goVerMin = golang.MustParse("go1.17")
+	goVerMax = golang.MustParse("go1.18")
 )
 
 var _ plugin.InitSubcommand = &initSubcommand{}


Test patch: