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

chore: make config/webhook to not store the resultant (incomplete) ValidatingWebhookConfiguration #6200

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Jun 13, 2024

What this PR does / why we need it:

Because controller-tools does not allow using objectSelector code markers (ref: kubernetes-sigs/controller-tools#553) we need to use kustomize patches to provide the full ValidatingWebhookConfiguration config: https://github.com/Kong/kubernetes-ingress-controller/blob/b01456169cbcfabd8684bef9e162fdcee4386196/config/webhook/additional_secret_hooks.yaml

This PR makes it so that we do not store an incomplete VWC config in config/webhook/manifests.yaml which could be used by users. It is not stored in config/webhook/base/manifests.yaml to indicate that it shouldn't be used as it's just a part of the kustomize build.

@pmalek pmalek self-assigned this Jun 13, 2024
@pmalek pmalek requested a review from a team as a code owner June 13, 2024 13:50
@pmalek pmalek merged commit 42f2891 into main Jun 14, 2024
49 checks passed
@pmalek pmalek deleted the complete-webhook-config branch June 14, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants