-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Allow openapi to act only on specific GKV #1633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We could add a flag of some sort to ignore certain APIs that are passed via that flag. cc @estroz |
I'm thinking of a flag @lilic @hasbro17 @joelanford @AlexNPavel @jmrodri @fabianvf WDYT |
@estroz that sounds good to me! 👍 Would that solve your usecase @jpkrohling ? |
I believe so: at the moment, I don't need to ignore specific |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
To solve this one we could does as it was done for:
Then, it means that:
|
HI @jpkrohling, As described in the comment #2054 (comment) was decided not to move forward with this kind of request. The reason for that is because we are looking for to design changes to give more flexibility to our users. Then, for customizations like this one, we would like to suggest the usage of controller-gen directly by a Makefile. Following an example of a Makefile with targets to generate/update the CRD's in the SDK structure. # Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
CRD_OPTIONS ?= "crd:trivialVersions=true"
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen
$(CONTROLLER_GEN) paths=./... crd:trivialVersions=true output:crd:artifacts:config=deploy/crds
# find or download controller-gen
# download controller-gen if necessary
controller-gen:
ifeq (, $(shell which controller-gen))
go get sigs.k8s.io/controller-tools/cmd/[email protected]
CONTROLLER_GEN=$(GOBIN)/controller-gen
else
CONTROLLER_GEN=$(shell which controller-gen)
endif Then, when the command For further information about how to use the controller-gen options/commands see its [docs] In this way, I am closing this one. However, please feel free to re-open if you feel that would be required. |
Feature Request
In the Jaeger Operator, we have a legacy CRD (
io.jaegertracing/v1alpha1
) which we deprecated some months ago. When running thegenerate openapi
command, I'd like to keep the CRDdeploy/crds/io_v1alpha1_jaeger_crd.yaml
untouched, as I don't want to bring new features or bugs to it.Currently, the mentioned command will regenerate all the CRDs that it can find. From the command documentation:
The text was updated successfully, but these errors were encountered: