How to Submit generic “runtime.Object” to Kubernetes API using client-go
问题 I'm using AWS' EKS which is Kubernetes v1.10 and I'm using client-go v7.0.0. 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 scheme.Codecs.UniversalDeserializer().Decode , and I get back an array of runtime.Object . I know that all the Kubernetes resources conform to the runtime.Object interface, but I can't find a way to submit the generic