We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abeab9f commit 220d31aCopy full SHA for 220d31a
Extension/k8s/PodExtension.cs
@@ -91,7 +91,7 @@ public static bool IsReady(this V1Pod pod)
91
92
public static bool IsProcessing(this V1Pod pod)
93
{
94
- var phase = pod.Status?.Phase switch
+ return pod.Status?.Phase switch
95
96
"Pending" => true,
97
"Running" => false,
@@ -100,13 +100,8 @@ public static bool IsProcessing(this V1Pod pod)
100
"Failed" => false,
101
_ => false
102
};
103
-// Console.WriteLine($"IsProcessing {pod.Metadata.Name} {phase}");
104
- if (phase)
105
- {
106
- return true;
107
- }
108
109
- return phase;
+
110
// if (pod.Status?.Conditions == null) return false;
111
// return pod.Status.Conditions.Any(condition => condition.Status != "True");
112
}
0 commit comments