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

add ephemeraljob validating webhook #1615

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

ABNER-1
Copy link
Member

@ABNER-1 ABNER-1 commented May 11, 2024

Ⅰ. Describe what this PR does

fix #1614

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it

Invalid ejob must be rejected by webhook.
For example:
image

Ⅳ. Special notes for reviews

@kruise-bot kruise-bot requested review from FillZpp and veophi May 11, 2024 04:10
@kruise-bot kruise-bot added the size/L size/L: 100-499 label May 11, 2024
@ABNER-1 ABNER-1 force-pushed the add-ephemeraljob-webhook branch from 9a68014 to 06ed285 Compare May 11, 2024 04:12
Copy link

codecov bot commented May 11, 2024

Codecov Report

Attention: Patch coverage is 70.33898% with 35 lines in your changes missing coverage. Please review.

Project coverage is 49.16%. Comparing base (0d0031a) to head (7b495c6).
Report is 40 commits behind head on master.

Files Patch % Lines
pkg/webhook/ephemeraljob/validating/validation.go 74.48% 18 Missing and 7 partials ⚠️
...b/validating/ephemeraljob_create_update_handler.go 58.82% 5 Missing and 2 partials ⚠️
pkg/webhook/ephemeraljob/validating/webhooks.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1615      +/-   ##
==========================================
+ Coverage   47.91%   49.16%   +1.24%     
==========================================
  Files         162      183      +21     
  Lines       23491    18921    -4570     
==========================================
- Hits        11256     9302    -1954     
+ Misses      11014     8398    -2616     
  Partials     1221     1221              
Flag Coverage Δ
unittests 49.16% <70.33%> (+1.24%) ⬆️

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.

@ABNER-1 ABNER-1 force-pushed the add-ephemeraljob-webhook branch from 06ed285 to 3037dd3 Compare May 11, 2024 08:47
@kruise-bot kruise-bot added size/XL size/XL: 500-999 and removed size/L size/L: 100-499 labels May 11, 2024
@ABNER-1 ABNER-1 force-pushed the add-ephemeraljob-webhook branch from 3037dd3 to e0a56bf Compare May 20, 2024 01:52
@kruise-bot kruise-bot added size/XXL and removed size/XL size/XL: 500-999 labels May 20, 2024
@ABNER-1 ABNER-1 force-pushed the add-ephemeraljob-webhook branch from e0a56bf to 7838bde Compare May 20, 2024 02:08
@ABNER-1 ABNER-1 force-pushed the add-ephemeraljob-webhook branch from 7838bde to fc48f67 Compare May 20, 2024 06:01
@kruise-bot kruise-bot added size/XL size/XL: 500-999 and removed size/XXL labels May 20, 2024
@ABNER-1 ABNER-1 force-pushed the add-ephemeraljob-webhook branch from fc48f67 to c77a185 Compare May 21, 2024 06:01
pkg/webhook/add_ephemeraljob.go Outdated Show resolved Hide resolved
pkg/webhook/ephemeraljob/validating/validation.go Outdated Show resolved Hide resolved
@ABNER-1 ABNER-1 force-pushed the add-ephemeraljob-webhook branch 2 times, most recently from 3d67224 to cca847d Compare May 31, 2024 08:51
Signed-off-by: Abner-1 <Abner199709@gmail.com>
@ABNER-1 ABNER-1 force-pushed the add-ephemeraljob-webhook branch from cca847d to 7b495c6 Compare June 3, 2024 03:30
@zmberg
Copy link
Member

zmberg commented Jun 4, 2024

/lgtm

@furykerry
Copy link
Member

/approve

@kruise-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: furykerry

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

@kruise-bot kruise-bot merged commit eb9a8b6 into openkruise:master Jun 4, 2024
40 of 41 checks passed
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.

[feature request] add validating webhook for ejob
4 participants