forked from rook/rook
kubernetes/code-generator is versioned alongside the core k8s.io modules, so codegen should logically stay in sync with the Kubernetes version in go.mod. So we now resolve KUBE_CODEGEN_TAG from k8s.io/apimachinery with go list instead of maintaining a separate pin that can silently fall behind dependency bumps. This removes manual version upkeep entirely. Bumping k8s modules in go.mod automatically picks the matching code-generator release on the next make codegen. Also rename CODE_GENERATOR_VERSION to KUBE_CODEGEN_TAG to align with the kube_codegen.sh tooling and the CODE_GENERATOR path used by codegen.sh. Add the generated files for latest codegen run as well. Signed-off-by: Malay Kumar Parida <mparida@redhat.com>