Closed Cytrian closed 2 years ago
Found out, the "API rule violations" are probably only warnings. I was able to build the operator locally after doing some updates:
I'm not a good go developer, but that's what worked for me. The "violations" still appear, but the controller can be built.
See here: https://github.com/Cytrian/terraform-operator/commit/cdd80e7599d6f5ecd58afc2ca01ff467cf19870b
Thanks so much for this @Cytrian !Worked like a charm!
When building the terraform-operator locally, I always get build errors regarding the generated openapi.
To have a clean and reproducible build environment, I used this Dockerfile.build:
After
openapi-gen
produces these errors:Later on, go refuses to compile and exits:
What am I doing wrong here, how can I build
terraform-operator
?