Changing deprecated library reference and setting delete propagation background policy (#5161)

Signed-off-by: Amim Knabben <amim.knabben@gmail.com>
pull/5231/head
Amim Knabben 6 years ago committed by Matthew Fisher
parent 6ceaef446f
commit 5cf932c140

@ -47,10 +47,11 @@ func deleteService(client corev1.ServicesGetter, namespace string) error {
} }
// deleteDeployment deletes the Tiller Deployment resource // deleteDeployment deletes the Tiller Deployment resource
// We need to use the reaper instead of the kube API because GC for deployment dependents
// is not yet supported at the k8s server level (<= 1.5)
func deleteDeployment(client kubernetes.Interface, namespace string) error { func deleteDeployment(client kubernetes.Interface, namespace string) error {
err := client.Extensions().Deployments(namespace).Delete(deploymentName, &metav1.DeleteOptions{}) policy := metav1.DeletePropagationBackground
err := client.AppsV1().Deployments(namespace).Delete(deploymentName, &metav1.DeleteOptions{
PropagationPolicy: &policy,
})
return ingoreNotFound(err) return ingoreNotFound(err)
} }

Loading…
Cancel
Save