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(WebhookServer): Fix webhook EOF error when creating resources (#338) #339

Merged

Conversation

Bhargav-InfraCloud
Copy link
Contributor

@Bhargav-InfraCloud Bhargav-InfraCloud commented Feb 28, 2024

Description

Assign the decoder field directly during the initialization of WebhookServer in the main package.

Remove the InjectDecoder method on WebhookServer as the controller-runtime package no longer allows injections.

Fixes #338

How Has This Been Tested?

This is an error with initialization and cannot be tested as a feature.

Steps to test this manually are in #338.

Checklist:

  • The title of the PR states what changed and the related issues number (used for the release note).
  • Does this PR requires documentation updates?
  • I've updated documentation as required by this PR.
  • I have ran go fmt
  • I have updated the helm chart as required by this PR.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have tested it for all user roles.
  • I have added all the required unit test cases.
  • I have verified the E2E test cases with new code changes.
  • I have added all the required E2E test cases.

Does this PR introduce a breaking change?


@Bhargav-InfraCloud
Copy link
Contributor Author

@Rahul-D78 @gourishkb @mridulgain Can you please review this PR? Thanks!

Assign the `decoder` field directly during initialization of
`WebhookServer` in main package.

Remove `InjectDecoder` method on `WebhookServer` as the
`controller-runtime` package no longer allows injections.

Fixes kubeslice#338

Signed-off-by: Bhargav Ravuri <[email protected]>
@Bhargav-InfraCloud Bhargav-InfraCloud force-pushed the br_fix_webhook_eof_error branch from 9a10cb6 to 39136af Compare March 6, 2024 11:40
@Bhargav-InfraCloud
Copy link
Contributor Author

Rebased with the latest master. Please trigger the E2E pipeline. Thanks!

@narmidm narmidm merged commit ffc9890 into kubeslice:master Mar 7, 2024
7 checks passed
@Bhargav-InfraCloud Bhargav-InfraCloud deleted the br_fix_webhook_eof_error branch March 7, 2024 06:18
@Bhargav-InfraCloud
Copy link
Contributor Author

Thanks all! 😊

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.

Bug: Operator panicking out as the decoder is not set
6 participants