systemk icon indicating copy to clipboard operation
systemk copied to clipboard

warn when unimplemented podspec constructs are seen

Open miekg opened this issue 4 years ago • 7 comments

Right now there is no good way (except reading the source of pod.go) to know if a specific construct in a podspec is implemented or not. It would be good to log/alert/fail if we see such a construct. This would also make it clear what things are still "to be implemented"

miekg avatar Dec 23 '20 09:12 miekg

Just record an Event for the Pod. That's the Kubernetes way! VK also does it.Running kubectl describe pod <pod name> will show the events.

pires avatar Dec 27 '20 18:12 pires

Now that we have a k8s client, this should be easier, the only way VK allowed for events was to return an error; we may still want to return an error, alternatively we need to be very clear what returns an error and what returns an event

miekg avatar Dec 28 '20 08:12 miekg

Return errors to whom? VK?

pires avatar Dec 28 '20 10:12 pires

Yes

On Mon, 28 Dec 2020, 11:45 Pires, [email protected] wrote:

Return errors to whom? VK?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/virtual-kubelet/systemk/issues/29#issuecomment-751669922, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACWIW2RXBLWUEIM7V3OKZTSXBOVLANCNFSM4VGXSTAA .

miekg avatar Dec 28 '20 11:12 miekg

In #65, I'm introducing an event recorder that is passed onto the VK's Pod controller. If desired, we can have the same or similar event recorder in our provider to write events for the Pod being processed.

pires avatar Jan 20 '21 20:01 pires

Something like that makes sense. however it requires for us to know when we see something we can't do or haven't implemented... Which is a lot of work

On Wed, 20 Jan 2021, 21:29 Pires, [email protected] wrote:

In #65 https://github.com/virtual-kubelet/systemk/pull/65, I'm introducing an event recorder that is passed onto the VK's Pod controller. If desired, we can have the same or similar event recorder in our provider to write events for the Pod being processed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/virtual-kubelet/systemk/issues/29#issuecomment-763912385, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACWIW4UVF4LGPR744WLGX3S244JVANCNFSM4VGXSTAA .

miekg avatar Jan 20 '21 21:01 miekg

Maybe not, maybe not.

pires avatar Jan 20 '21 22:01 pires