Skip to content

Commit 564d230

Browse files
authored
fix crd code er (#1439)
1 parent e2b54da commit 564d230

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/customResource/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ private static async Task Main(string[] args)
9292
// deleting the custom resource
9393
try
9494
{
95-
myCr = await generic.DeleteNamespacedAsync<CResource>(
95+
var status = await generic.DeleteNamespacedAsync<V1Status>(
9696
myCr.Metadata.NamespaceProperty ?? "default",
9797
myCr.Metadata.Name).ConfigureAwait(false);
9898

99-
Console.WriteLine("Deleted the CR");
99+
Console.WriteLine($"Deleted the CR status: {status}");
100100
}
101101
catch (Exception exception)
102102
{

0 commit comments

Comments
 (0)