fix crd code er (#1439)
This commit is contained in:
@@ -92,11 +92,11 @@ namespace customResource
|
|||||||
// deleting the custom resource
|
// deleting the custom resource
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
myCr = await generic.DeleteNamespacedAsync<CResource>(
|
var status = await generic.DeleteNamespacedAsync<V1Status>(
|
||||||
myCr.Metadata.NamespaceProperty ?? "default",
|
myCr.Metadata.NamespaceProperty ?? "default",
|
||||||
myCr.Metadata.Name).ConfigureAwait(false);
|
myCr.Metadata.Name).ConfigureAwait(false);
|
||||||
|
|
||||||
Console.WriteLine("Deleted the CR");
|
Console.WriteLine($"Deleted the CR status: {status}");
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user