8.0: API Group + v1.24 (#850)

* swagger 1.24

* trim converter

* api group

* before moving method

* grouped api for client

* fix classic build

* fix e2e

* move all code to v8

* fix vis to

* bump ver

* fix authtest filename
This commit is contained in:
Boshi Lian
2022-05-07 13:05:17 -07:00
committed by GitHub
parent 78bfa24157
commit 85755ccb3e
51 changed files with 2461 additions and 3335 deletions

View File

@@ -10,7 +10,7 @@ namespace @namespace
{
private static void ListNamespaces(IKubernetes client)
{
var list = client.ListNamespace();
var list = client.CoreV1.ListNamespace();
foreach (var item in list.Items)
{
Console.WriteLine(item.Metadata.Name);
@@ -29,7 +29,7 @@ namespace @namespace
await Task.Delay(delayMillis).ConfigureAwait(false);
try
{
await client.ReadNamespaceAsync(name).ConfigureAwait(false);
await client.CoreV1.ReadNamespaceAsync(name).ConfigureAwait(false);
}
catch (AggregateException ex)
{
@@ -73,12 +73,12 @@ namespace @namespace
var ns = new V1Namespace { Metadata = new V1ObjectMeta { Name = "test" } };
var result = client.CreateNamespace(ns);
var result = client.CoreV1.CreateNamespace(ns);
Console.WriteLine(result);
ListNamespaces(client);
var status = client.DeleteNamespace(ns.Metadata.Name, new V1DeleteOptions());
var status = client.CoreV1.DeleteNamespace(ns.Metadata.Name, new V1DeleteOptions());
if (status.HasObject)
{