infinyon / k8-api

Native Rust implementation of Kubernetes api
Apache License 2.0
34 stars 17 forks source link

k8-config should allow defining config programatically #277

Open nacardin opened 1 year ago

nacardin commented 1 year ago

As of https://github.com/infinyon/k8-api/pull/266 KubeConfig is tied to a file path. It is useful to be able to programmatically specify every k8 config option. Perhaps we could have K8Config be an object that has fields for every config option and it can be implement From for PodConfig and KubeConfig.