openapi-promop-crd-hack :: $ref in the OpenAPI schema for prometheus-operator If necessary, update swagger.json from the official Kubernetes repo, and then run: go run ./... The output will be the new schema