You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@yunikorn.apache.org by "Weiwei Yang (Jira)" <ji...@apache.org> on 2020/04/17 21:50:00 UTC
[jira] [Resolved] (YUNIKORN-36) Cleanup leaked resources when
deleting the helm chart
[ https://issues.apache.org/jira/browse/YUNIKORN-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Weiwei Yang resolved YUNIKORN-36.
---------------------------------
Fix Version/s: 0.9
Resolution: Fixed
> Cleanup leaked resources when deleting the helm chart
> -----------------------------------------------------
>
> Key: YUNIKORN-36
> URL: https://issues.apache.org/jira/browse/YUNIKORN-36
> Project: Apache YuniKorn
> Issue Type: Improvement
> Components: shim - kubernetes
> Reporter: Tao Yang
> Assignee: Tao Yang
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.9
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Several resources may be leaked after this helm chart is deleted(uninstalled):
> - admission-controller deployment/service/mutatingwebhook/validatingwebhook/secret. The reason is that admission-controller resources are deleted via preStop hook of yunikorn-scheduler pod, the ServiceAccount and ClusterRoleBinding resources are probably already deleted then.
> - yunikorn-configs ConfigMap. This one is configured as pre-install hook in helm chart, it won't be deleted when uninstalling.
> All resources are expected to be cleaned up after the helm chart is deleted, to achieve that, this issue will take the ServiceAccount and ClusterRoleBinding resources as pre-install hooks and create a cleanup pod to release ConfigMap/ClusterRoleBinding/ServiceAccount resources as prometheus operator did (refer to https://github.com/helm/charts/blob/d58247103fafd5930792bb1fd3ac240547523200/stable/prometheus-operator/templates/prometheus-operator/cleanup-crds.yaml#L33).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: issues-help@yunikorn.apache.org