Closed chrisliu1995 closed 3 months ago
is this resolved ? can i work on this ?
is this resolved ? can i work on this ?
Finally, this solution is not accepted. We got this solution to solve the problem(https://github.com/openkruise/kruise-game/pull/129)
Background
As https://github.com/openkruise/kruise-game/issues/15 mentioned, OKG already supported cloud providers & plugins mechanism by Kubernetes webhook. Plus, in order to increase network availability, OKG also supports the function of network asynchronous ready, running the plugin within a limited time to repeatedly establish & confirm the network until the network is ready.
However, the function of network asynchronous ready requires that the webhook can still allow the operation of creating pod when an error occurs, which actually is conflict with synchronous plugins, like Kubernetes-HostPort plugin, because synchronous plugins require pod & network ready at same time.
Proposal
Plugin interface add a new function
IsSynchronous
to determine whether allow to create pod when errors occurred.The new Plugin interface would be: