Skip to content

Commit a6eb077

Browse files
anoopcs9mergify[bot]
authored andcommitted
hack: Update controller-gen to v0.14.0
Golang v1.22 doesn't work well[1] with any controller-gen < v0.14.0. Updating controller-gen mandates removal of trivialVersions boolean marker previously used for legacy v1beta1 CRDs[2]. [1] kubernetes-sigs/controller-tools#888 (comment) [2] https://github.com/kubernetes-sigs/controller-tools/releases/tag/v0.7.0 Signed-off-by: Anoop C S <[email protected]>
1 parent 5b98317 commit a6eb077

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ TAG?=latest
3838
IMG?=quay.io/samba.org/samba-operator:$(TAG)
3939

4040
# Produce CRDs that work on Kubernetes 1.16 or later
41-
CRD_OPTIONS?="crd:trivialVersions=true,crdVersions=v1"
41+
CRD_OPTIONS?="crd:crdVersions=v1"
4242

4343
CHECK_GOFMT_FLAGS?=-e -s -l
4444

hack/install-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ _install_kustomize() {
3636
}
3737

3838
_install_controller_gen() {
39-
_install_tool sigs.k8s.io/controller-tools/cmd/controller-gen@v0.6.2
39+
_install_tool sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0
4040
}
4141

4242
_install_revive() {

0 commit comments

Comments
 (0)