Skip to content

Commit 248381b

Browse files
vulkoingimroboquat
authored andcommitted
Preview-env don't wait for WS pods
1 parent c8eedd0 commit 248381b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.werft/util/kubectl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ export async function waitUntilAllPodsAreReady(namespace: string, kubeconfig: st
394394
}
395395

396396
function getPods(namespace: string, kubeconfig: string): Pod[] {
397-
const cmd = `kubectl --kubeconfig ${kubeconfig} get pods -n ${namespace} -o=jsonpath='{range .items[*]}{@.metadata.name}:{@.metadata.ownerReferences[0].kind}:{@.status.phase};{end}'`;
397+
const cmd = `kubectl --kubeconfig ${kubeconfig} get pods -n ${namespace} -l 'component!=workspace' -o=jsonpath='{range .items[*]}{@.metadata.name}:{@.metadata.ownerReferences[0].kind}:{@.status.phase};{end}'`;
398398
const unsanitizedPods = exec(cmd, { silent: true, async: false, dontCheckRc: true });
399399
if (unsanitizedPods.code != 0) {
400400
throw new Error(

0 commit comments

Comments
 (0)