aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2021-05-06 16:57:05 +0000
committerGerrit Code Review <gerrit@onap.org>2021-05-06 16:57:05 +0000
commitc7f358b2420eae7852167ce18706196e4fafa864 (patch)
treeafaf636af71933792b69dddc48f18a487317187e
parentbe23566cec4b5571178a930a5a16d22be9dd7b93 (diff)
parent7ad3a6baa917859b18414a0a8158cbfba4c85962 (diff)
Merge "DeletePropagationPolicy changed to background"
-rw-r--r--src/k8splugin/plugins/generic/plugin.go2
-rw-r--r--src/k8splugin/plugins/namespace/plugin.go2
-rw-r--r--src/k8splugin/plugins/service/plugin.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/k8splugin/plugins/generic/plugin.go b/src/k8splugin/plugins/generic/plugin.go
index 5f73ad22..f38fee78 100644
--- a/src/k8splugin/plugins/generic/plugin.go
+++ b/src/k8splugin/plugins/generic/plugin.go
@@ -212,7 +212,7 @@ func (g genericPlugin) Delete(resource helm.KubernetesResource, namespace string
}
gvr := mapping.Resource
- deletePolicy := metav1.DeletePropagationForeground
+ deletePolicy := metav1.DeletePropagationBackground
opts := metav1.DeleteOptions{
PropagationPolicy: &deletePolicy,
}
diff --git a/src/k8splugin/plugins/namespace/plugin.go b/src/k8splugin/plugins/namespace/plugin.go
index 59defa36..851a5568 100644
--- a/src/k8splugin/plugins/namespace/plugin.go
+++ b/src/k8splugin/plugins/namespace/plugin.go
@@ -65,7 +65,7 @@ func (p namespacePlugin) Get(resource helm.KubernetesResource, namespace string,
// Delete an existing namespace hosted in a specific Kubernetes cluster
func (p namespacePlugin) Delete(resource helm.KubernetesResource, namespace string, client plugin.KubernetesConnector) error {
- deletePolicy := metaV1.DeletePropagationForeground
+ deletePolicy := metaV1.DeletePropagationBackground
opts := metaV1.DeleteOptions{
PropagationPolicy: &deletePolicy,
}
diff --git a/src/k8splugin/plugins/service/plugin.go b/src/k8splugin/plugins/service/plugin.go
index 06f4b1d5..ba1decbb 100644
--- a/src/k8splugin/plugins/service/plugin.go
+++ b/src/k8splugin/plugins/service/plugin.go
@@ -111,7 +111,7 @@ func (p servicePlugin) Delete(resource helm.KubernetesResource, namespace string
namespace = "default"
}
- deletePolicy := metaV1.DeletePropagationForeground
+ deletePolicy := metaV1.DeletePropagationBackground
opts := metaV1.DeleteOptions{
PropagationPolicy: &deletePolicy,
}