fix: use the correct template type in teardown.sh.
#!/bin/bash
+# External Environment Variables
+#
+#1. KUBERNETES_NAMESPACE: The target namespace.
+#2. SYNDESIS_TEMPLATE_TYPE: The template type to use (e.g. syndesis, syndesis-restricted, syndesis-ephemeral-restricted.
+
+#Configure the SYNDESIS_TEMPLATE_TYPE
+if [ -z "${SYNDESIS_TEMPLATE_TYPE}" ]; then
+ SYNDESIS_TEMPLATE_TYPE="syndesis-ci"
+fi
echo "Remove Syndesis from ${KUBERNETES_NAMESPACE}"
oc project ${KUBERNETES_NAMESPACE}
@@ -7,7 +16,7 @@ echo "Displaying the list of Pods in project: ${KUBERNETES_NAMESPACE}"
oc get pods -n ${KUBERNETES_NAMESPACE}
echo "Removing Syndesis from ${KUBERNETES_NAMESPACE}"
-oc process syndesis -n ${KUBERNETES_NAMESPACE} \
+oc process ${SYNDESIS_TEMPLATE_TYPE} -n ${KUBERNETES_NAMESPACE} \
ROUTE_HOSTNAME=${KUBERNETES_NAMESPACE}.b6ff.rh-idev.openshiftapps.com \
KEYCLOAK_ROUTE_HOSTNAME=${KUBERNETES_NAMESPACE}-keycloack.b6ff.rh-idev.openshiftapps.com \
OPENSHIFT_MASTER=$(oc whoami --show-server) \
