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

fix: CRD WebhookConversion respect WEBHOOK_HOST env #2217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fungaren
Copy link
Contributor

@fungaren fungaren commented Dec 5, 2024

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind bug

/kind documentation
/kind enhancement
/kind good-first-issue
/kind feature
/kind question
/kind design
/sig ai
/sig iot
/sig network
/sig storage

What this PR does / why we need it:

YurtManager watches ValidatingWebhookConfiguration and MutatingWebhookConfiguration and update its clientConfig according to the WEBHOOK_HOST environment variable.

However, some CRDs (eg. NodePool) also include the clientConfig field in spec.conversion.webhook, and the Helm chart already set it. It seems the YurtManager forgot to update it while updating crd.Spec.Conversion.Webhook.ClientConfig.CABundle.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

Copy link

sonarcloud bot commented Dec 5, 2024

Copy link

codecov bot commented Dec 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 45.23%. Comparing base (7763e7c) to head (1bbcfb6).
Report is 45 commits behind head on master.

Files with missing lines Patch % Lines
...ager/webhook/util/controller/webhook_controller.go 0.00% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2217       +/-   ##
===========================================
- Coverage   58.93%   45.23%   -13.71%     
===========================================
  Files         210      404      +194     
  Lines       18968    27820     +8852     
===========================================
+ Hits        11179    12583     +1404     
- Misses       6707    14006     +7299     
- Partials     1082     1231      +149     
Flag Coverage Δ
unittests 45.23% <0.00%> (-13.71%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant