Skip to content

feat: add --from-controller flag for self-contained code generation#703

Open
michaelhtm wants to merge 1 commit into
aws-controllers-k8s:mainfrom
michaelhtm:feat/generatefromcontrollers
Open

feat: add --from-controller flag for self-contained code generation#703
michaelhtm wants to merge 1 commit into
aws-controllers-k8s:mainfrom
michaelhtm:feat/generatefromcontrollers

Conversation

@michaelhtm
Copy link
Copy Markdown
Member

@michaelhtm michaelhtm commented May 14, 2026

Description of changes:
Adds ack-generate controller <service> --from-controller and
ack-generate release <service> <version> --from-controller, which run
the full generation pipeline from within a controller repo without
needing shell scripts or a local code-generator checkout.

Usage (from a controller repo):
ack-generate controller s3 --from-controller
ack-generate release s3 v1.2.3 --from-controller

The generated Makefile wires these up:
make generate # installs ack-generate, runs controller --from-controller
make release V=v1.2.3 # installs ack-generate, runs release --from-controller

Without --from-controller, both commands behave exactly as before
existing generation via build-controller.sh and build-controller-release.sh
is unaffected.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow
Copy link
Copy Markdown

ack-prow Bot commented May 14, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ack-prow ack-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 14, 2026
@michaelhtm michaelhtm marked this pull request as ready for review May 14, 2026 17:23
@ack-prow ack-prow Bot requested review from jlbutler and knottnt May 14, 2026 17:23
@ack-prow ack-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 14, 2026
@ack-prow
Copy link
Copy Markdown

ack-prow Bot commented May 14, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michaelhtm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow Bot added the approved label May 14, 2026
@michaelhtm
Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@michaelhtm
Copy link
Copy Markdown
Member Author

/retest

@michaelhtm michaelhtm force-pushed the feat/generatefromcontrollers branch from e6c8118 to a93f9d9 Compare May 15, 2026 00:52
@michaelhtm michaelhtm changed the title feat: generate Makefile with build, test, generate, and release targets feat: add --from-controller flag for self-contained code generation May 15, 2026
@michaelhtm michaelhtm force-pushed the feat/generatefromcontrollers branch 2 times, most recently from c9ace88 to 2a8b9fa Compare May 19, 2026 23:24
…rate

Replace shell scripts (build-controller.sh, build-controller-release.sh)
with a Go-native pipeline that runs from within the controller repo.
The `ack-generate controller` command now handles APIs, deepcopy, CRDs,
RBAC, formatting, and boilerplate in a single invocation. Templates and
boilerplate files are embedded via go:embed, enabling `go install` without
a local code-generator checkout.
@michaelhtm michaelhtm force-pushed the feat/generatefromcontrollers branch from 2a8b9fa to e028075 Compare May 20, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant