community icon indicating copy to clipboard operation
community copied to clipboard

Errors while generating `s3-controller` for ACK runtime `v0.20.1`, code-generator `v0.20.1`

Open ack-bot opened this issue 3 years ago • 0 comments

Errors while generating s3-controller for ACK runtime v0.20.1, code-generator v0.20.1

stdout for make build-controller:

building ack-generate ... ok.
==== building s3-controller ====
Copying common custom resource definitions into s3
Building Kubernetes API objects for s3
Generating deepcopy code for s3

stderr for make build-controller:

github.com/aws-controllers-k8s/s3-controller/apis/v1alpha1:-: invalid pointer element type: invalid type
Error: not all generators ran successfully
run `controller-gen object:headerFile=/home/prow/go/src/github.com/aws-controllers-k8s/code-generator/scripts/../templates/boilerplate.txt paths=./... -w` to see all available markers, or `controller-gen object:headerFile=/home/prow/go/src/github.com/aws-controllers-k8s/code-generator/scripts/../templates/boilerplate.txt paths=./... -h` for usage
make: *** [Makefile:41: build-controller] Error 1

Steps for closing this issue:

  1. Update s3-controller go.mod file to update aws-controllers-k8s/runtime to v0.20.1
  2. Run go mod tidy for s3-controller
  3. Successfully generate the service controller locally using latest release of aws-controllers-k8s/code-generator
  4. Run make test for s3-controller
  5. Run make kind-test from aws-controllers-k8s/test-infra repository for s3-controller
  6. When kind test is successful, Create new pull request for s3-controller
  7. Mention this issue number in the pull request
  8. When the above PR is merged, close this issue

For more guidance, create an issue or reach out on Slack.

ack-bot avatar Sep 12 '22 19:09 ack-bot