koalawangyang commented on issue #130: URL: https://github.com/apache/rocketmq-operator/issues/130#issuecomment-1243413762
> Please run `go version` to check the version of Golang, the main version should be 1.16. Idealy `controller-gen` should be installed when running `make deploy`, it seems that something was wrong when `go get` was executed. Thanks for response. I have downgraded the go version to 1.16. New error shows as below. [root@ip-172-31-76-201 rocketmq-operator]# make deploy go: creating new go.mod: module tmp Downloading sigs.k8s.io/controller-tools/cmd/[email protected] go get: added sigs.k8s.io/controller-tools v0.7.0 /root/rocketmq-operator/bin/controller-gen rbac:roleName=rocketmq-operator crd:generateEmbeddedObjectMeta=true webhook paths="./..." output:dir=deploy output:crd:artifacts:config=deploy/crds Error: err: exit status 1: stderr: go: github.com/google/[email protected]: missing go.sum entry; to add it: go mod download github.com/google/uuid Usage: controller-gen [flags] Examples: # Generate RBAC manifests and crds for all types under apis/, # outputting crds to /tmp/crds and everything else to stdout controller-gen rbac:roleName=<role name> crd paths=./apis/... output:crd:dir=/tmp/crds output:stdout # Generate deepcopy/runtime.Object implementations for a particular file controller-gen object paths=./apis/v1beta1/some_types.go # Generate OpenAPI v3 schemas for API packages and merge them into existing CRD manifests controller-gen schemapatch:manifests=./manifests output:dir=./manifests paths=./pkg/apis/... # Run all the generators for a given project controller-gen paths=./apis/... # Explain the markers for generating CRDs, and their arguments controller-gen crd -ww Flags: -h, --detailed-help count print out more detailed help (up to -hhh for the most detailed output, or -hhhh for json output) --help print out usage and a summary of options --version show version -w, --which-markers count print out all markers available with the requested generators (up to -www for the most detailed output, or -wwww for json output) Options generators +webhook package generates (partial) {Mutating,Validating}WebhookConfiguration objects. +schemapatch[:generateEmbeddedObjectMeta=<bool>],manifests=<string>[,maxDescLen=<int>] package patches existing CRDs with new schemata. +rbac:roleName=<string> package generates ClusterRole objects. +object[:headerFile=<string>][,year=<string>] package generates code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. +crd[:allowDangerousTypes=<bool>][,crdVersions=<[]string>][,generateEmbeddedObjectMeta=<bool>][,maxDescLen=<int>] package generates CustomResourceDefinition objects. generic +paths=<[]string> package represents paths and go-style path patterns to use as package roots. output rules (optionally as output:<generator>:...) +output:artifacts[:code=<string>],config=<string> package outputs artifacts to different locations, depending on whether they're package-associated or not. +output:dir=<string> package outputs each artifact to the given directory, regardless of if it's package-associated or not. +output:none package skips outputting anything. +output:stdout package outputs everything to standard-out, with no separation. run `controller-gen rbac:roleName=rocketmq-operator crd:generateEmbeddedObjectMeta=true webhook paths=./... output:dir=deploy output:crd:artifacts:config=deploy/crds -w` to see all available markers, or `controller-gen rbac:roleName=rocketmq-operator crd:generateEmbeddedObjectMeta=true webhook paths=./... output:dir=deploy output:crd:artifacts:config=deploy/crds -h` for usage make: *** [manifests] Error 1 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
