autopilot build

autopilot build

Compiles code and builds artifacts


The operator-sdk build command compiles the Operator code into an executable binary and generates the Dockerfile manifest.

is the container image to be built, e.g. “”. This image will be automatically set in the deployment manifests.

After build completes, the image would be built locally in docker. Then it needs to be pushed to remote registry. For example: $ operator-sdk build $ docker push

autopilot build <image> [flags]


      --go-build-args string      Extra Go build arguments as one string such as "-ldflags"
  -h, --help                      help for build
      --image-build-args string   Extra image build arguments as one string such as "--build-arg https_proxy=$https_proxy"

Options inherited from parent commands

  -v, --verbose   Enable verbose logging