How to Submit generic "runtime.Object" to Kubernetes API using client-go : <p>I'm using AWS' EKS which is Kubernetes v1.10 and I'm using client-go v7.0.0.</p>

<p>What I'm trying to do is parse a .yml file with multiple Kubernetes resource definitions in a file and submit those resources to the Kubernetes API. I can successfully parse the files using this code <code>scheme.Codecs.UniversalDeserializer().Decode</code>, and I get back an array of <code>runtime.Object</code>.</p>

<p>I know that all the Kubernetes resources conform to the <code>runtime.Object</code> interface, but I can't find a way to submit the generic interface to the API. Most methods I've seen use the methods on the concrete types like Deployment, Pod, etc.</p>

<p>I've seen some code around a generic RESTClient like this <code>clientset.RESTClient().Put().Body(obj).Do()</code>, but that doesn't work and I can't figure it out.</p>

<p>I know my clientset is configured correctly because I can successfully list all Pods.</p>
