-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
⚠️ (go/v3-alpha) default to v1 CRDs and webhooks #1644
⚠️ (go/v3-alpha) default to v1 CRDs and webhooks #1644
Conversation
Sorry, I am not using kubebuilder the CLI at all, hence I can not review changes here. |
5d02748
to
5d98011
Compare
5d98011
to
16d287f
Compare
Since you can generate multiple CRD/webhook config versions with /hold |
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.
Just a nit about the docs and a small question.
/retest |
@estroz For webhook, there is not a package marker
Fully discussion are here: kubernetes-sigs/controller-tools#469 (comment) |
@jiachengxu you're correct, I got confused with a POC PR I made recently to version webhooks. My point about flags still stands though. |
/retest |
pkg/plugin/v3/scaffolds/internal/templates/config/crd/enablewebhook_patch.go
Outdated
Show resolved
Hide resolved
pkg/plugin/v3/scaffolds/internal/templates/config/crd/kustomizeconfig.go
Outdated
Show resolved
Hide resolved
pkg/plugin/v3/scaffolds/internal/templates/config/crd/kustomizeconfig.go
Outdated
Show resolved
Hide resolved
pkg/plugin/v3/scaffolds/internal/templates/config/crd/kustomizeconfig.go
Outdated
Show resolved
Hide resolved
pkg/plugin/v3/scaffolds/internal/templates/config/webhook/kustomization.go
Outdated
Show resolved
Hide resolved
pkg/plugin/v3/scaffolds/internal/templates/config/webhook/kustomizeconfig.go
Outdated
Show resolved
Hide resolved
373e17c
to
d5ae8be
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.
It shows fine 👍 for me.
/approve
/pull-kubebuilder-e2e-k8s-1-16-2 |
/pull-kubebuilder-e2e-k8s-1-16-2 |
1 similar comment
/pull-kubebuilder-e2e-k8s-1-16-2 |
d5ae8be
to
6e7ffba
Compare
use v1beta1 via --crd-version and --webhook-version pkg/plugin/v3: bump controller-tools to the master, which contains the "webhook:admissionReviewVersions" marker option required for webhook configs to work with controller-runtime v0.6.3. Tests are updated to respect multiple tool (controller-gen, kustomize) versions since e2e tests run for multiple plugin versions. pkg/model/config: use Config.Resources to hold core resource version info
6e7ffba
to
239c6d2
Compare
/retest |
/retest |
1 similar comment
/retest |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Adirio, camilamacedo86, estroz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR bumps controller-tools to v0.4.0, which defaults CRD and webhook config versions to v1. To conform to this change, the default scaffolded patches for either type will be v1, with the option to use v1beta1 via
create api --crd-version
andcreate webhook --webhook-version
.Closes #933
Closes #1065
Closes #1734
Closes #1827
/kind feature