From 36fbfc55f3c37eb0a58e4220c05d0a483b206aa6 Mon Sep 17 00:00:00 2001 From: Justin Ross Date: Thu, 7 Mar 2024 06:08:09 -0500 Subject: [PATCH] Adapt demo mode and the standard steps for app access based on port forwarding --- example/README.md | 1 - python/skewer/main.py | 6 ++---- python/skewer/standardsteps.yaml | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/example/README.md b/example/README.md index 7fb3c41..d52f9b6 100644 --- a/example/README.md +++ b/example/README.md @@ -310,7 +310,6 @@ _**West:**_ ~~~ shell skupper delete -kubectl delete service/frontend kubectl delete deployment/frontend ~~~ diff --git a/python/skewer/main.py b/python/skewer/main.py index 05f1f99..297bf91 100644 --- a/python/skewer/main.py +++ b/python/skewer/main.py @@ -210,10 +210,8 @@ def pause_for_demo(model): if first_site.platform == "kubernetes": with first_site: - if resource_exists("service/frontend"): - if get_resource_json("service/frontend", ".spec.type") == "LoadBalancer": - frontend_host = await_ingress("service/frontend") - frontend_url = f"http://{frontend_host}:8080/" + if resource_exists("deployment/frontend"): + frontend_url = f"http://localhost:8080/" if resource_exists("secret/skupper-console-users"): console_host = await_ingress("service/skupper") diff --git a/python/skewer/standardsteps.yaml b/python/skewer/standardsteps.yaml index 14931e0..3e47832 100644 --- a/python/skewer/standardsteps.yaml +++ b/python/skewer/standardsteps.yaml @@ -339,7 +339,6 @@ hello_world/cleaning_up: commands: "0": - run: skupper delete - - run: kubectl delete service/frontend - run: kubectl delete deployment/frontend "1": - run: skupper delete