fix crd code er (#1439)

This commit is contained in:
Boshi Lian
2023-10-27 18:43:52 -07:00
committed by GitHub
parent e2b54da276
commit 564d23057c

View File

@@ -92,11 +92,11 @@ namespace customResource
// deleting the custom resource
try
{
myCr = await generic.DeleteNamespacedAsync<CResource>(
var status = await generic.DeleteNamespacedAsync<V1Status>(
myCr.Metadata.NamespaceProperty ?? "default",
myCr.Metadata.Name).ConfigureAwait(false);
Console.WriteLine("Deleted the CR");
Console.WriteLine($"Deleted the CR status: {status}");
}
catch (Exception exception)
{