Skip to content

Commit 21bc022

Browse files
committed
enable cascading deletion
1 parent bbc9511 commit 21bc022

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/kube-api.ts

+8
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,14 @@ export class KubeSdk {
833833
.delete(url, {
834834
timeout: this.kubeApiTimeout,
835835
retry: 0,
836+
headers: {
837+
'Content-Type': 'application/json',
838+
},
839+
body: JSON.stringify({
840+
kind: 'DeleteOptions',
841+
apiVersion: 'batch/v1',
842+
propagationPolicy: 'Background',
843+
}),
836844
})
837845
.json();
838846

0 commit comments

Comments
 (0)