controller-gen
Code generator for Kubernetes controllers and CRDs
Kubebuilder makes use of this tool for generating utility code and Kubernetes YAML. This code and config generation is controlled by the presence of special "marker comments" in Go code.
Controller-gen is built out of different "generators" (which specify what to generate) and "output rules" (which specify how and where to write the results).
arm64 amd64
Installation
1. Add WakeMeOps repository
curl -sSL https://raw.githubusercontent.com/upciti/wakemeops/main/assets/install_repository | sudo bash
2. Install controller-gen
Snippets
Download URLs
Blueprints
Debian packages listed on this page are generated from op2deb YAML blueprints. Blueprints for controller-gen are versioned here.
Click here to see controller-gen ops2deb blueprints
https://github.com/upciti/wakemeops/blob/main/blueprints/dev/controller-gen/ops2deb.yml
name: controller-gen
matrix:
architectures:
- amd64
- arm64
versions:
- 0.18.0
- 0.19.0
homepage: https://book.kubebuilder.io
summary: code generator for Kubernetes controllers and CRDs
description: |-
Kubebuilder makes use of this tool for generating utility code and Kubernetes
YAML. This code and config generation is controlled by the presence of special
"marker comments" in Go code.
Controller-gen is built out of different "generators" (which specify what to
generate) and "output rules" (which specify how and where to write the
results).
fetch: https://github.com/kubernetes-sigs/controller-tools/releases/download/v{{version}}/controller-gen-linux-{{arch}}
install:
- controller-gen-linux-{{arch}}:/usr/bin/controller-gen
The blueprint fetch keyword contains a URL template pointing to controller-gen releases. Downloaded files are locked in a lockfile versioned here.
Click here to see controller-gen release hashes
https://github.com/upciti/wakemeops/blob/main/blueprints/dev/controller-gen/ops2deb.lock.yml
- url: https://github.com/kubernetes-sigs/controller-tools/releases/download/v0.18.0/controller-gen-linux-amd64
sha256: d191eea7a8471a99105a0cf0686e5bfbe13a7d1838287287d251b755e5c54d9b
timestamp: 2025-06-03 14:34:06+00:00
- url: https://github.com/kubernetes-sigs/controller-tools/releases/download/v0.18.0/controller-gen-linux-arm64
sha256: a7e21df58b107f8ccba7e07fea9e60cdff561c3d27da93e6db84fa2ea014a2c4
timestamp: 2025-06-03 14:34:06+00:00
- url: https://github.com/kubernetes-sigs/controller-tools/releases/download/v0.19.0/controller-gen-linux-amd64
sha256: 5df5d2cced0621d7d8d8040ef20482f5c6e2ced32f1b1ad825f1bdf52f433161
timestamp: 2025-11-12 00:08:21+00:00
- url: https://github.com/kubernetes-sigs/controller-tools/releases/download/v0.19.0/controller-gen-linux-arm64
sha256: 50dc28b10d4080e0bc547f8de91b26054fd58d51147f5cb36fd632400a3c5f4f
timestamp: 2025-11-12 00:08:21+00:00