-
Notifications
You must be signed in to change notification settings - Fork 127
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
Use apiextension v1 #186
Use apiextension v1 #186
Conversation
I will update the e2e tests in a follow up. Mainly because I would like to write something like
but the yaml manifest is not present in the main branch yet. EDIT: nvm, kg crashes without the crd |
0917a57
to
30f6311
Compare
Makefile
Outdated
@@ -75,7 +76,13 @@ all-container-latest: $(addprefix container-latest-, $(ALL_ARCH)) | |||
|
|||
all-push-latest: $(addprefix push-latest-, $(ALL_ARCH)) | |||
|
|||
generate: client deepcopy informer lister openapi | |||
generate: client deepcopy informer lister openapi crd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generate: client deepcopy informer lister openapi crd | |
generate: client deepcopy informer lister crd |
Makefile
Outdated
@@ -120,6 +127,17 @@ pkg/k8s/informers/kilo/v1alpha1/peer.go: .header pkg/k8s/apis/kilo/v1alpha1/type | |||
rm -r github.com || true | |||
go fmt ./pkg/k8s/informers/... | |||
|
|||
openapi: pkg/k8s/apis/kilo/v1alpha1/openapi_generated.go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove this stuff now?
Makefile
Outdated
@@ -1,5 +1,5 @@ | |||
export GO111MODULE=on | |||
.PHONY: push container clean container-name container-latest push-latest fmt lint test unit vendor header generate client deepcopy informer lister openapi manifest manfest-latest manifest-annotate manifest manfest-latest manifest-annotate release gen-docs e2e | |||
.PHONY: push container clean container-name container-latest push-latest fmt lint test unit vendor header generate openapi crd client deepcopy informer lister manifest manfest-latest manifest-annotate manifest manfest-latest manifest-annotate release gen-docs e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.PHONY: push container clean container-name container-latest push-latest fmt lint test unit vendor header generate openapi crd client deepcopy informer lister manifest manfest-latest manifest-annotate manifest manfest-latest manifest-annotate release gen-docs e2e | |
.PHONY: push container clean container-name container-latest push-latest fmt lint test unit vendor header generate crd client deepcopy informer lister manifest manfest-latest manifest-annotate manifest manfest-latest manifest-annotate release gen-docs e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm man :) we can remove the openapi code right? then let's merge
30f6311
to
da24b5e
Compare
tools.go
Outdated
@@ -24,4 +24,5 @@ import ( | |||
_ "k8s.io/code-generator/cmd/informer-gen" | |||
_ "k8s.io/code-generator/cmd/lister-gen" | |||
_ "k8s.io/kube-openapi/cmd/openapi-gen" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_ "k8s.io/kube-openapi/cmd/openapi-gen" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the last thing, then make vendor
- upgrade from apiextension v1beta1 to v1 - generate yaml manifest for crd intead of applying it at runtime - users will have to apply the manifest with kubectl - kg and kgctl log an error if the crd is not present - now validation should actually work Signed-off-by: leonnicolas <leonloechner@gmx.de>
da24b5e
to
36643b7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice :))))))
Signed-off-by: leonnicolas leonloechner@gmx.de