Hello again. Trying to understand pod plugin code,...
# flyte-support
r
Hello again. Trying to understand pod plugin code, so to take it as reference to develop other custom backend plugins for our need on k8s. Need some help in understanding links between functions calls and their definitions. currently, taskCtx.TaskReader().Read(ctx) is referring to an interface. But where is the implementation for this interface. I can only see it is called in BuildResource method. Could some can explain us code?
t
you’re referring to the TaskReader interface?
i think the implementation that you want is the
lazyUploadingTaskReader
, here
the plugin machinery is a bit much, which is why we took the path of developing the flyte agents plugin framework.
some of the interfaces you see in flyteplugins are implemented in propeller.
if you’re looking to write a plugin that creates a k8s object though, look to the existing plugins for inspiration
r
Hello @thankful-minister-83577, yes I was referring to existing pod plugin code. there itself I got doubt related to taskreader interface.