[
https://issues.apache.org/jira/browse/YUNIKORN-36?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Weiwei Yang reassigned YUNIKORN-36:
-----------------------------------
Assignee: Tao Yang
> 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
> Time Spent: 10m
> 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: [email protected]
For additional commands, e-mail: [email protected]