kubeslice / worker-operator

Kubeslice Worker Operator Opensource Repository: The KubeSlice Worker Operator is a Kubernetes operator that manages the lifecycle of KubeSlice worker clusters.
Apache License 2.0
58 stars 19 forks source link

fix(WebhookServer): Fix webhook EOF error when creating resources (#338) #339

Closed Bhargav-InfraCloud closed 4 months ago

Bhargav-InfraCloud commented 4 months ago

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:

Does this PR introduce a breaking change?

Bhargav-InfraCloud commented 4 months ago

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

Bhargav-InfraCloud commented 4 months ago

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

Bhargav-InfraCloud commented 4 months ago

Thanks all! 😊