Skip to content
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

Allow skipping conversion crd update #3006

Closed
wants to merge 1 commit into from

Conversation

skonto
Copy link
Contributor

@skonto skonto commented Apr 3, 2024

Changes

/kind enhancement

Copy link

knative-prow bot commented Apr 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: skonto

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 3, 2024
@knative-prow knative-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 3, 2024
@dprotaso
Copy link
Member

dprotaso commented Apr 3, 2024

Why not just delete the conversion webhook controller from your binary?

Using a context options would require re-compilation anyways

@skonto
Copy link
Contributor Author

skonto commented Apr 5, 2024

Why not just delete the conversion webhook controller from your binary?

We keep this aligned with the knative/operator https://github.com/knative/operator/blob/main/config/crd/bases/operator.knative.dev_knativeservings.yaml#L2470
Not sure what is coming next (if any major change) like moving from v1beta1 to v1 for example. 🤷

@skonto
Copy link
Contributor Author

skonto commented May 29, 2024

@dprotaso wdyth about my last comment?

@dprotaso
Copy link
Member

dprotaso commented May 29, 2024

I guess I'm still confused are you looking to skip conversion webhook callbacks or skip the reconciliation that updates the cacert and service path?

If it's the CA cert then don't we have the knobs(options) to change the default secret and properties?

We keep this aligned with the knative/operator https://github.com/knative/operator/blob/main/config/crd/bases/operator.knative.dev_knativeservings.yaml#L2470

I don't think you need to set that - it will default to what the API server supports - which is probably v1 now? v1beta1 and v1 are equivalent (or it was when I last looked)

@dprotaso
Copy link
Member

I'm going to close this out - i think downstream it just makes sense to drop the certificate reconciler from the webhook controller

@dprotaso dprotaso closed this Jun 28, 2024
@skonto
Copy link
Contributor Author

skonto commented Sep 30, 2024

@dprotaso hi,

I guess I'm still confused are you looking to skip conversion webhook callbacks or skip the reconciliation that updates the cacert and service path?

I wanted to skip the update of the CRD (path and bundle) as this is done from another operator. Contents will not much.

v1beta1 and v1 are equivalent (or it was when I last looked)
I'm going to close this out - i think downstream it just makes sense to drop the certificate reconciler from the webhook controller

I wanted to keep this around in case there is a migration to v1, probably not? Knative operator still has a conversion webhook even if it is on v1beta1 for several releases now. Not sure why it is not dropped if we are never going to move further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/enhancement size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants