Skip to content

Makefile: use update-codegen.sh bundled in the gengo-builder image, bump image to release-1.34 - #51

Merged
tamalsaha merged 1 commit into
masterfrom
kube-codegen-migration
Sep 2, 2026
Merged

tamalsaha merged 1 commit into
masterfrom
kube-codegen-migration

Conversation

@tamalsaha

Copy link
Copy Markdown
Member

Summary

Replaces the old generate-groups.sh based clientset target with update-codegen.sh, a generic script bundled into CODE_GENERATOR_IMAGE (see gengo-builder's scripts/update-codegen.sh for the full env-var interface).

  • GENERATORS is scoped to deepcopy only (no typed client), matching what the old generate-groups.sh call here actually generated -- there is no client/ directory in this repo.
  • openapi-% is updated for the new openapi-gen CLI (positional packages + --output-dir/--output-pkg/--output-file instead of --input-dirs/--output-package). apis/ui/v1alpha1/openapi_generated.go was never checked into this repo (no git history for that path) and openapi isn't wired into gen here either (left as-is), so this doesn't add it -- keeping the rule itself correct just means make openapi-ui_v1alpha1 still works if run by hand.
  • The top-level openapi target's later go run hack/gencrd/main.go step fails because that file doesn't exist in this repo -- pre-existing, unrelated to this change, and not wired into gen/verify either (verify here is verify-modules only).

All 4 of this repo's +genclient types (Dbgate, Pgadmin, Phpmyadmin, MongoUi) already embed metav1.ObjectMeta, so no apis/ changes were needed even though no client is actually generated for them.

Verification

Ran locally against the real ghcr.io/appscode/gengo:release-1.34 image: check-license, lint, build, unit-tests -- all pass. deepcopy-gen's output is byte-identical to what was already checked in.

…ump image to release-1.34

Replaces the old generate-groups.sh based clientset target with
update-codegen.sh, a generic script bundled into CODE_GENERATOR_IMAGE
(see appscodelabs/gengo-builder scripts/update-codegen.sh for the full
env-var interface). GENERATORS is scoped to deepcopy only (no typed
client), matching what the old generate-groups.sh call here actually
generated -- there is no client/ directory in this repo.

Also updates the openapi-% rule for the new openapi-gen CLI (positional
packages + --output-dir/--output-pkg/--output-file instead of
--input-dirs/--output-package). apis/ui/v1alpha1/openapi_generated.go
was never checked into this repo (no git history for that path) and
'openapi' isn't wired into 'gen' here either (left as-is, matches
existing composition), so this doesn't add it -- keeping the rule
itself correct just means 'make openapi-ui_v1alpha1' still works if
run by hand. The top-level 'openapi' target's later
'go run hack/gencrd/main.go' step fails because that file doesn't
exist in this repo -- pre-existing, unrelated to this change, and
also not wired into 'gen'/'verify' (verify here is verify-modules
only).

All 4 of this repo's +genclient types (Dbgate, Pgadmin, Phpmyadmin,
MongoUi) already embed metav1.ObjectMeta, so no apis/ changes were
needed even though no client is actually generated for them.

Verified with make check-license, lint, build, unit-tests against the
real gengo-builder release-1.34 image; deepcopy-gen's output is
byte-identical to what was already checked in.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha
tamalsaha merged commit 0648621 into master Sep 2, 2026
6 of 10 checks passed
@tamalsaha
tamalsaha deleted the kube-codegen-migration branch September 2, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant