You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
can't delete multiple crds resources with before-hook-creation #4591
has been added for each CRD resource but it won't be able to delete all CRD resource when run the $helm install, and tiller will return the error message as below:
[tiller] 2018/09/05 07:03:28 performing install for demo
[tiller] 2018/09/05 07:03:28 executing 6 crd-install hooks for demo
[tiller] 2018/09/05 07:03:28 deleting crd-install hook alertmanagers.monitoring.coreos.com for release demo due to "before-hook-creation" policy
[kube] 2018/09/05 07:03:28 Starting delete for "alertmanagers.monitoring.coreos.com" CustomResourceDefinition
[kube] 2018/09/05 07:03:28 building resources from manifest
[kube] 2018/09/05 07:03:28 creating 1 resource(s)
[tiller] 2018/09/05 07:03:28 warning: Release demo crd-install prometheus-operator/templates/alertmanager-crd.yaml failed: object is being deleted: customresourcedefinitions.apiextensions.k8s.io "alertmanagers.monitoring.coreos.com" already exists
[tiller] 2018/09/05 07:03:28 failed install perform step: object is being deleted: customresourcedefinitions.apiextensions.k8s.io "alertmanagers.monitoring.coreos.com" already exists
Expected Results: all CRD resources with "helm.sh/hook-delete-policy": "before-hook-creation" hook should remove altogether.
Activity
raoofm commentedon Dec 13, 2018
experiencing the same issue with
helm v2.10.0
kubectl v1.10.11
alexey-igrychev commentedon Jan 16, 2019
I've looked into the code and related issue #4440.
I agree with #4440 (comment), thus suggest to add watch until hook deleted only for
before_hook_creationpolicy here (https://github.com/helm/helm/blob/master/pkg/tiller/release_server.go#L454).before_hook_creationpolicy.@technosophos, what do you think?
bacongobbler commentedon Dec 9, 2019
Moving forward, please use the
crdsdirectory instead of thecrd-installhook, which was deprecated in Helm 3. Closing!