Standardization of using order and object initialization (#1028)

* Code cleanup KubernetesClient

* KubernetesClient.Basic code cleanup

* KubernetesClient.Models cleanup

* LibKubernetesGenerator code cleanup

* Improved readability of object initialization

* FIx namespace order

* Fixed some compilation warning
This commit is contained in:
Manuel Menegazzo
2022-09-28 22:34:32 +02:00
committed by GitHub
parent bbd3b6cd50
commit 3702fd6e90
47 changed files with 201 additions and 165 deletions

View File

@@ -10,10 +10,12 @@ namespace yaml
{
private static async Task Main(string[] args)
{
var typeMap = new Dictionary<String, Type>();
typeMap.Add("v1/Pod", typeof(V1Pod));
typeMap.Add("v1/Service", typeof(V1Service));
typeMap.Add("apps/v1/Deployment", typeof(V1Deployment));
var typeMap = new Dictionary<String, Type>
{
{ "v1/Pod", typeof(V1Pod) },
{ "v1/Service", typeof(V1Service) },
{ "apps/v1/Deployment", typeof(V1Deployment) }
};
var objects = await KubernetesYaml.LoadAllFromFileAsync(args[0], typeMap);