[SDNC] Remove hook on db job 56/116356/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 15 Dec 2020 08:43:49 +0000 (09:43 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 15 Dec 2020 08:43:49 +0000 (09:43 +0100)
This hook is not really used and slows down ONAP installation.

Issue-ID: OOM-2652
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I3693615a8af53da51d12d3a735f0bf183e59626b

kubernetes/sdnc/resources/config/bin/installSdncDb.sh
kubernetes/sdnc/templates/job.yaml

index caf745c..11ed7f4 100755 (executable)
@@ -65,7 +65,7 @@ ${BIN_DIR}/rmForeignKey.sh NETWORK_MODEL FK_NETWORK_MODEL
 if [ -x ${SDNC_HOME}/svclogic/bin/install.sh ]
 then
     echo "Installing directed graphs"
-     ${SDNC_HOME}/svclogic/bin/install.sh
+    ${SDNC_HOME}/svclogic/bin/install.sh
 fi
 
 
index 897a0ba..9f6273d 100755 (executable)
@@ -25,10 +25,6 @@ metadata:
     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
     release: {{ include "common.release" . }}
     heritage: {{ .Release.Service }}
-  annotations:
-    "helm.sh/hook": post-install
-    "helm.sh/hook-weight": "0"
-    "helm.sh/hook-delete-policy": before-hook-creation
 spec:
   backoffLimit: 20
   template: