From: Lianhao Lu Date: Thu, 13 Jun 2019 11:23:39 +0000 (+0800) Subject: Added hook delete policy for CRD in rook-ceph X-Git-Tag: 1.5.0~67 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;ds=sidebyside;h=00f1dfc2d16bbe2f69d1a8d95f027ec77a385069;p=demo.git Added hook delete policy for CRD in rook-ceph This is to ensure after 'helm delete rook-ceph', it can be installed again succefully. Change-Id: I9ad8b83bca24542897ff08a90aece0249650917c Issue-ID: ONAPARC-366 Signed-off-by: Lianhao Lu --- diff --git a/vnfs/DAaaS/deploy/00-init/rook-ceph/templates/resources.yaml b/vnfs/DAaaS/deploy/00-init/rook-ceph/templates/resources.yaml index e296663f..5ea4177a 100644 --- a/vnfs/DAaaS/deploy/00-init/rook-ceph/templates/resources.yaml +++ b/vnfs/DAaaS/deploy/00-init/rook-ceph/templates/resources.yaml @@ -5,6 +5,7 @@ metadata: name: cephclusters.ceph.rook.io annotations: "helm.sh/hook": crd-install + "helm.sh/hook-delete-policy": before-hook-creation spec: group: ceph.rook.io names: @@ -88,6 +89,7 @@ metadata: name: cephfilesystems.ceph.rook.io annotations: "helm.sh/hook": crd-install + "helm.sh/hook-delete-policy": before-hook-creation spec: group: ceph.rook.io names: @@ -112,6 +114,7 @@ metadata: name: cephobjectstores.ceph.rook.io annotations: "helm.sh/hook": crd-install + "helm.sh/hook-delete-policy": before-hook-creation spec: group: ceph.rook.io names: @@ -128,6 +131,7 @@ metadata: name: cephobjectstoreusers.ceph.rook.io annotations: "helm.sh/hook": crd-install + "helm.sh/hook-delete-policy": before-hook-creation spec: group: ceph.rook.io names: @@ -147,6 +151,7 @@ metadata: name: cephblockpools.ceph.rook.io annotations: "helm.sh/hook": crd-install + "helm.sh/hook-delete-policy": before-hook-creation spec: group: ceph.rook.io names: @@ -163,6 +168,7 @@ metadata: name: volumes.rook.io annotations: "helm.sh/hook": crd-install + "helm.sh/hook-delete-policy": before-hook-creation spec: group: rook.io names: