summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukasz Rajewski <lukasz.rajewski@orange.com>2021-05-05 20:39:10 +0200
committerLukasz Rajewski <lukasz.rajewski@orange.com>2021-05-06 17:33:54 +0000
commit1f1a909349d0e53d3b3764fad9fe7781a70fc73d (patch)
tree9c9f17797843569dde2350a1a3e91d2f66da55da
parent97bd8a16fda3b7d0f176aa1b04d7fba5f1f56354 (diff)
DeletePropagationPolicy changed to background0.8.2
The policy is changed to Background operation which is default for helm application. Later on dedicated parametr will be added to the profile to let it be changed for particular helm chart. Issue-ID: MULTICLOUD-1338 Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com> Change-Id: I29978bc39fe6e1d10b0278fe10736ff1b7cc2006 (cherry picked from commit 7ad3a6baa917859b18414a0a8158cbfba4c85962)
-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,
}