demo: cleanup stale namespace before recreating
Rerunning the demo results in an error because the existing
namespace is not deleted prior to recreation:
Error from server (AlreadyExists): namespaces "osm-system" already exists
@@ -70,7 +70,9 @@ wait_for_pod_ready() {
make build-osm
+# cleanup stale resources from previous runs
bin/osm mesh delete -f --mesh-name "$MESH_NAME" --namespace "$K8S_NAMESPACE"
+./demo/clean-kubernetes.sh
# The demo uses osm's namespace as defined by environment variables, K8S_NAMESPACE
# to house the control plane components.
