Skip to content

Commit

Permalink
bump controller-gen to v0.15.0 (#5691)
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Jul 25, 2024
1 parent 2ea7667 commit eb26860
Show file tree
Hide file tree
Showing 17 changed files with 2,239 additions and 237 deletions.
2 changes: 1 addition & 1 deletion hack/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function hack::ensure_golangci_lint() {

function hack::ensure_controller_gen() {
echo "Installing controller_gen..."
GOBIN=$OUTPUT_BIN go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.6.2
GOBIN=$OUTPUT_BIN go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0
}

function hack::ensure_goimports() {
Expand Down
4 changes: 2 additions & 2 deletions hack/update-crd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ echo "Generating CRDs ..."

API_PACKAGES="github.com/pingcap/tidb-operator/pkg/apis/pingcap/v1alpha1/..."
CRD_OUTPUT_DIR=${ROOT}/manifests/crd
CRD_OPTIONS="preserveUnknownFields=false,allowDangerousTypes=true,maxDescLen=0"
CRD_OPTIONS="allowDangerousTypes=true,maxDescLen=0"

# generate CRDs
${CONTROLLER_GEN} \
Expand All @@ -53,7 +53,7 @@ echo "Generating CRDs for federation ..."

API_PACKAGES="github.com/pingcap/tidb-operator/pkg/apis/federation/pingcap/v1alpha1/..."
CRD_OUTPUT_DIR=${ROOT}/manifests/crd/federation
CRD_OPTIONS="preserveUnknownFields=false,allowDangerousTypes=true,maxDescLen=0"
CRD_OPTIONS="allowDangerousTypes=true,maxDescLen=0"

# generate CRDs
${CONTROLLER_GEN} \
Expand Down
Loading

0 comments on commit eb26860

Please sign in to comment.