Skip to content

Commit fb76749

Browse files
committed
Rename make targets. Add controller undeploy target
1 parent 9ceac70 commit fb76749

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Makefile.local

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ undeploy-aws-istio-blueprint-local:
240240
#################
241241
# See 'doc/getting-started.md'
242242
.PHONY: setup-getting-started
243-
setup-getting-started: setup-getting-started-cluster setup-getting-started-controller setup-getting-started-controller-blueprint setup-getting-started-usecase
243+
setup-getting-started: setup-getting-started-cluster setup-getting-started-controller setup-getting-started-controller-blueprint deploy-getting-started-usecase
244244

245245
.PHONY: setup-getting-started-cluster
246246
setup-getting-started-cluster:
@@ -262,8 +262,8 @@ setup-getting-started-controller:
262262
GATEWAY_CLASS_NAME ?= contour-istio-cert
263263
DOMAIN ?= foo.example.com
264264

265-
.PHONY: setup-getting-started-usecase
266-
setup-getting-started-usecase:
265+
.PHONY: deploy-getting-started-usecase
266+
deploy-getting-started-usecase:
267267
kubectl apply -f test-data/getting-started/foo-namespaces.yaml
268268
cat test-data/getting-started/foo-gateway.yaml | GATEWAY_CLASS_NAME=${GATEWAY_CLASS_NAME} DOMAIN=${DOMAIN} envsubst | kubectl apply -f -
269269
kubectl -n foo-site apply -f test-data/getting-started/app-foo-site.yaml
@@ -272,6 +272,10 @@ setup-getting-started-usecase:
272272
kubectl -n foo-store apply -f test-data/getting-started/app-foo-store-v2.yaml
273273
kubectl -n foo-store apply -f test-data/getting-started/foo-store-httproute.yaml
274274

275+
.PHONY: undeploy-getting-started-usecase
276+
undeploy-getting-started-usecase:
277+
kubectl delete -f test-data/getting-started/foo-namespaces.yaml
278+
275279
.PHONY: deploy-namespace-gatewayclassconfig
276280
deploy-namespace-gatewayclassconfig:
277281
cat hack/demo/namespace-gatewayclassconfig.yaml | CERTIFICATE_ARN=${CERTIFICATE_ARN} envsubst | kubectl apply -f -

hack/demo/delete.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -x
55
SCOPE=${1:-""}
66

77
if [ -z "$SCOPE" ] || [ "$SCOPE" == "bifrost" ]; then
8-
helm uninstall -n bifrost-gateway-controller-system bifrost-gateway-controller
8+
helm uninstall -n bifrost-gateway-controller-system bifrost-gateway-controller-helm
99
fi
1010

1111
if [ -z "$SCOPE" ] || [ "$SCOPE" == "app" ]; then

0 commit comments

Comments
 (0)