move kubectl config and yaml related to model module (#806)

* move yaml and config to models module

* better naming

* address comments
This commit is contained in:
Boshi Lian
2022-03-28 16:57:12 -07:00
committed by GitHub
parent dba7b9718e
commit 57037f0070
29 changed files with 71 additions and 52 deletions

View File

@@ -15,7 +15,7 @@ namespace yaml
typeMap.Add("v1/Service", typeof(V1Service));
typeMap.Add("apps/v1/Deployment", typeof(V1Deployment));
var objects = await Yaml.LoadAllFromFileAsync(args[0], typeMap);
var objects = await KubernetesYaml.LoadAllFromFileAsync(args[0], typeMap);
foreach (var obj in objects) {
Console.WriteLine(obj);