apache / rocketmq-operator

Apache RocketMQ Operator
https://rocketmq.apache.org/
Apache License 2.0
310 stars 126 forks source link

operator build failed #88

Closed inetkiller closed 2 years ago

inetkiller commented 2 years ago

run ./create-operator.sh, get the following error :


+ DOCKERHUB_REPO=apacherocketmq/rocketmq-operator:0.3.0-snapshot
+ ROCKETMQ_VERSION=4.5.0
+ export GO111MODULE=on
+ GO111MODULE=on
+ '[' '!' -e build/rocketmq.zip ']'
+ operator-sdk generate k8s
The 'operator-sdk generate' command invokes a specific generator to generate
code or manifests.

Usage:
  operator-sdk generate [command]

Available Commands:
  bundle           Generates bundle data for the operator
  kustomize        Contains subcommands that generate operator-framework kustomize data for the operator

Flags:
  -h, --help   help for generate

Global Flags:
      --plugins strings   plugin keys to be used for this subcommand execution
      --verbose           Enable verbose logging

Use "operator-sdk generate [command] --help" for more information about a command.
+ operator-sdk generate openapi
The 'operator-sdk generate' command invokes a specific generator to generate
code or manifests.

Usage:
  operator-sdk generate [command]

Available Commands:
  bundle           Generates bundle data for the operator
  kustomize        Contains subcommands that generate operator-framework kustomize data for the operator

Flags:
  -h, --help   help for generate

Global Flags:
      --plugins strings   plugin keys to be used for this subcommand execution
      --verbose           Enable verbose logging

Use "operator-sdk generate [command] --help" for more information about a command.
+ go mod vendor
+ echo 'Start building RocketMQ-Operator...'
Start building RocketMQ-Operator...
+ operator-sdk build apacherocketmq/rocketmq-operator:0.3.0-snapshot
Error: unknown command "build" for "operator-sdk"
Run 'operator-sdk --help' for usage.
FATA[0000] unknown command "build" for "operator-sdk"

extra information: operator sdk version: v1.15.0

inetkiller commented 2 years ago

operator sdk version can not > 1.0.0 , https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.0.0/