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: deployment render should only mutate workloads created by yurtap… #1974

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

vie-serendipity
Copy link
Contributor

…pset v1alpha1

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

/kind bug

What this PR does / why we need it:

Yurtappset is updated to v1beta1. Now deployment render will mutate all workloads created by yurtappset. Actually, yurtappoverrider should only manage workloads created by yurtappset v1alpha1. Otherwise, it will cause unexpected errors. So we should add some restrictions to deployment webhook of yurtappoverrider.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

None

other Note

Copy link

codecov bot commented Mar 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.41%. Comparing base (34b14cc) to head (fd4ba7e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1974   +/-   ##
=======================================
  Coverage   52.41%   52.41%           
=======================================
  Files         173      173           
  Lines       21015    21018    +3     
=======================================
+ Hits        11014    11017    +3     
  Misses       9051     9051           
  Partials      950      950           
Flag Coverage Δ
unittests 52.41% <100.00%> (+<0.01%) ⬆️

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.

Copy link

sonarcloud bot commented Mar 11, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@rambohe-ch
Copy link
Member

@vie-serendipity Thank you for posting the pull request to improve YurtAppSet workload. I agree with you that deployment render webhook should effect v1alpha1.YurtAppSet only.

@rambohe-ch
Copy link
Member

rambohe-ch commented Mar 13, 2024

/lgtm

@rambohe-ch rambohe-ch added approved approved lgtm lgtm labels Mar 13, 2024
@rambohe-ch rambohe-ch merged commit e33a217 into openyurtio:master Mar 13, 2024
13 checks passed
vie-serendipity added a commit to vie-serendipity/openyurt that referenced this pull request Mar 20, 2024
openyurtio#1974)

* fix: deployment render should only mutate workloads created by yurtappset v1alpha1
zyjhtangtang pushed a commit to zyjhtangtang/openyurt that referenced this pull request Apr 16, 2024
openyurtio#1974)

* fix: deployment render should only mutate workloads created by yurtappset v1alpha1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved approved lgtm lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants