Skip to content

Commit b47bf49

Browse files
ArthurSensroboquat
authored andcommitted
werft/VM: Don't fail job after forcefully killing kubectl processes
Signed-off-by: ArthurSens <[email protected]>
1 parent 6db8ef1 commit b47bf49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.werft/vm/vm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ export function copyk3sKubeconfig(options: { path: string, timeoutMS: number, sl
116116
*/
117117
export function startSSHProxy(options: { name: string, slice: string }) {
118118
const namespace = `preview-${options.name}`
119-
exec(`sudo kubectl --kubeconfig=${KUBECONFIG_PATH} -n ${namespace} port-forward service/proxy 22:22`, { async: true, silent: true, slice: options.slice })
119+
exec(`sudo kubectl --kubeconfig=${KUBECONFIG_PATH} -n ${namespace} port-forward service/proxy 22:22`, { async: true, silent: true, slice: options.slice, dontCheckRc: true })
120120
}
121121

122122
/**
123123
* Proxy 127.0.0.1:6443 to :6443 in the VM through the k8s service
124124
*/
125125
export function startKubeAPIProxy(options: { name: string, slice: string }) {
126126
const namespace = `preview-${options.name}`
127-
exec(`sudo kubectl --kubeconfig=${KUBECONFIG_PATH} -n ${namespace} port-forward service/proxy 6443:6443`, { async: true, silent: true, slice: options.slice })
127+
exec(`sudo kubectl --kubeconfig=${KUBECONFIG_PATH} -n ${namespace} port-forward service/proxy 6443:6443`, { async: true, silent: true, slice: options.slice, dontCheckRc: true })
128128
}
129129

130130
/**

0 commit comments

Comments
 (0)