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

Implement low level admission handler interface for ByoHost webhook #515

Merged
merged 5 commits into from
May 3, 2022

Conversation

anusha94
Copy link
Contributor

To intercept the ByoHost req object, implementing the low level Handle
function.
Fix and refactor existing test and code for byohost webhook

Partial fix for #514

To intercept the ByoHost req object, implementing the low level Handle
function.
Fix and refactor existing test and code for byohost webhook
@codecov-commenter
Copy link

codecov-commenter commented Apr 28, 2022

Codecov Report

Merging #515 (04dcef9) into main (85a9dd7) will increase coverage by 0.11%.
The diff coverage is 76.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #515      +/-   ##
==========================================
+ Coverage   67.11%   67.22%   +0.11%     
==========================================
  Files          22       22              
  Lines        1721     1730       +9     
==========================================
+ Hits         1155     1163       +8     
  Misses        494      494              
- Partials       72       73       +1     
Impacted Files Coverage Δ
apis/infrastructure/v1beta1/byohost_webhook.go 78.57% <76.92%> (-8.93%) ⬇️
agent/main.go 15.48% <0.00%> (-0.42%) ⬇️
agent/reconciler/host_reconciler.go 81.48% <0.00%> (+2.24%) ⬆️

@anusha94 anusha94 marked this pull request as draft April 29, 2022 06:58
@anusha94 anusha94 marked this pull request as ready for review April 30, 2022 00:36
@anusha94 anusha94 force-pushed the byohost-admission-webhook branch from 6569f19 to 23ea765 Compare April 30, 2022 00:37
@anusha94 anusha94 requested review from dharmjit and pshail April 30, 2022 00:37
dharmjit
dharmjit previously approved these changes May 1, 2022
Copy link
Contributor

@dharmjit dharmjit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

apis/infrastructure/v1beta1/byohost_webhook.go Outdated Show resolved Hide resolved
apis/infrastructure/v1beta1/webhook_suite_test.go Outdated Show resolved Hide resolved
@anusha94 anusha94 force-pushed the byohost-admission-webhook branch from af4c42d to 04dcef9 Compare May 2, 2022 04:58
@anusha94 anusha94 requested a review from dharmjit May 2, 2022 05:17
Copy link
Contributor

@sachinkumarsingh092 sachinkumarsingh092 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anusha94 anusha94 merged commit fe8af2d into vmware-tanzu:main May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants