Skip to content

Commit 48836e5

Browse files
committed
Labelling the namespace for Istio
1 parent ddb5ea5 commit 48836e5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ CONTAINER_SOURCES := $(shell find var/container)
1515
HELM_SOURCES := $(shell find var/helm)
1616
HELM_TARGET := dist/mrmat-python-api-fastapi-$(VERSION).tgz
1717

18+
ISTIO := ambient
19+
1820
all: python container helm
1921
python: $(PYTHON_TARGET)
2022
helm: $(HELM_TARGET)
@@ -40,11 +42,13 @@ container: $(PYTHON_TARGET) $(CONTAINER_SOURCES)
4042

4143
helm-install: $(HELM_TARGET)
4244
kubectl create ns mpafastapi || true
43-
kubectl label --overwrite ns mpafastapi istio-injection=true
45+
if test "$(ISTIO)" == "sidecar"; then kubectl label --overwrite ns mpafastapi istio-injection=true; fi
46+
if test "$(ISTIO)" == "ambient"; then kubectl label --overwrite ns mpafastapi istio.io/dataplane-mode=ambient; fi
4447
helm upgrade \
4548
mrmat-python-api-fastapi \
4649
${HELM_TARGET} \
4750
--install \
51+
--wait \
4852
--force \
4953
--namespace mpafastapi
5054

0 commit comments

Comments
 (0)