solo-io / go-utils

golang utilities
Apache License 2.0
110 stars 18 forks source link

kubeutils - get clientcmd config with context #403

Closed joekelley closed 4 years ago

joekelley commented 4 years ago

Add a function for getting clientcmd config with context.

joekelley commented 4 years ago

better to just use clientcmd.NewNonInteractiveDeferredLoadingClientConfig and get whichever flavor of kubeconfig is needed than to make a util for each set of params and return type.