Merge "Update SDNC and CCSDK versions"
authorGary Wu <gary.i.wu@huawei.com>
Fri, 5 Oct 2018 14:11:39 +0000 (14:11 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 5 Oct 2018 14:11:39 +0000 (14:11 +0000)
deployment/heat/onap-oom/scripts/cleanup.sh [new file with mode: 0644]
version-manifest/pom.xml

diff --git a/deployment/heat/onap-oom/scripts/cleanup.sh b/deployment/heat/onap-oom/scripts/cleanup.sh
new file mode 100644 (file)
index 0000000..03bcd17
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+IFS='
+'
+
+if [ -z $1 ]; then
+  echo "ONAP component name missing"
+  echo "Usage: ./cleanup.sh ONAP_COMPONENT_NAME"
+  exit 1
+fi
+
+COMPONENT=$1
+
+if [ $COMPONENT == "dcae" ] || [ $COMPONENT == "DCAE" ]; then
+  kubectl delete service consul -n onap
+fi
+
+for op in secrets configmaps pv services deployments statefulsets; do
+  ARRAY=(`kubectl get $op -n onap | grep $COMPONENT | awk '{print $1}'`)
+  for i in ${ARRAY[*]}; do
+    kubectl delete $op -n onap $i
+  done
+done
index 3c6dea7..4202b26 100644 (file)
   <url>https://www.onap.org</url>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <mavenVersion>3.2.3</mavenVersion>
   </properties>
   <dependencies>
-    <dependency>
-      <groupId>org.apache.maven</groupId>
-      <artifactId>maven-plugin-api</artifactId>
-      <version>2.0</version>
-    </dependency>
     <dependency>
       <groupId>org.apache.maven.plugin-tools</groupId>
       <artifactId>maven-plugin-annotations</artifactId>
-      <version>3.2</version>
+      <version>3.5.2</version>
       <scope>provided</scope>
     </dependency>
-    <dependency>
-      <groupId>org.codehaus.plexus</groupId>
-      <artifactId>plexus-utils</artifactId>
-      <version>3.0.8</version>
-    </dependency>
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-core</artifactId>
-      <version>${mavenVersion}</version>
+      <version>3.5.4</version>
     </dependency>
     <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-csv -->
     <dependency>
           </execution>
           <execution>
             <id>check-docker-images-released</id>
-            <phase>validate</phase>
+            <phase>verify</phase>
             <goals>
               <goal>exec</goal>
             </goals>
           </execution>
           <execution>
             <id>check-docker-staging-images-exist</id>
-            <phase>validate</phase>
+            <phase>verify</phase>
             <goals>
               <goal>exec</goal>
             </goals>