From 39b61665dc341ca5d9c402ddba95095e123f9606 Mon Sep 17 00:00:00 2001 From: manusa Date: Tue, 9 Mar 2021 14:21:01 +0100 Subject: [PATCH] fix: KubernetesListOperationsImpl propagates configured propagationpolicy --- .../client/dsl/internal/KubernetesListOperationsImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/KubernetesListOperationsImpl.java b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/KubernetesListOperationsImpl.java index 78eb624be16..4410c301c3e 100644 --- a/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/KubernetesListOperationsImpl.java +++ b/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/KubernetesListOperationsImpl.java @@ -151,12 +151,12 @@ public Boolean delete(List lists) { @Override public Gettable fromServer() { - return new KubernetesListOperationsImpl(client, config, namespace, null, DeletionPropagation.BACKGROUND, true, deletingExisting, item, null); + return new KubernetesListOperationsImpl(client, config, namespace, null, context.getPropagationPolicy(), true, deletingExisting, item, null); } @Override public Createable deletingExisting() { - return new KubernetesListOperationsImpl(client, config, namespace, null, DeletionPropagation.BACKGROUND, fromServer, true, item, null); + return new KubernetesListOperationsImpl(client, config, namespace, null, context.getPropagationPolicy(), fromServer, true, item, null); } private List createItemsInKubernetesList(KubernetesList list) {