How to step-into kubernetes source code using IDE?

5/6/2020

Is it possible to run kubectl commands and see the run-time execution using an IDE like GoLand for example?

I would like to open 'apply.go' source code and see how the code is executed when I type: kubectl apply -f/hit Enter step-by-step.

-- x300n
kubectl
kubernetes

1 Answer

5/6/2020

Go does offer a debugger, Delve. But I don’t think this will be very helpful. Kubectl code is kind of hard to understand even if you already know it and kubectl apply is the single most complex thing in all of kubectl. So complex that the logic is being moved to the server side, in newer versions.

-- coderanger
Source: StackOverflow