-
Notifications
You must be signed in to change notification settings - Fork 407
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: webhook overwrite deployment owned by yad/yas #1851
Conversation
@luc99hen: GitHub didn't allow me to assign the following users: your_reviewer. Note that only openyurtio members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@luc99hen: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: luc99hen The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@luc99hen: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@luc99hen: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1851 +/- ##
==========================================
- Coverage 52.20% 52.19% -0.02%
==========================================
Files 172 172
Lines 20828 20839 +11
==========================================
+ Hits 10874 10877 +3
- Misses 8993 8998 +5
- Partials 961 964 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/lgtm |
/approve |
Co-authored-by: luchen <[email protected]>
What type of PR is this?
/kind bug
What this PR does / why we need it:
Currently, deployment overrider webhook will override the deployment spec owned by a yad(yurtappdaemon) with the yad template. However, the
nodeselector
field in the deployment spec will be set to null because it's not set in the yad template but set by the yad controller. This leads to issue.We need to use the
applyTemplate
in the yad controller to get the complete deployment spec.Which issue(s) this PR fixes:
Fixes # #1841
Special notes for your reviewer:
@rambohe-ch @vie-serendipity
Does this PR introduce a user-facing change?
other Note