Skip to content

Commit 782d613

Browse files
committed
Set Istio namespace for sidecar injection
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 5c2a3a1 commit 782d613

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/e2e.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,5 @@ jobs:
7474
kubectl -n istio-operator get all
7575
kubectl -n istio-system get all
7676
kubectl -n prod get all
77+
kubectl -n prod describe deployment backend
78+
kubectl -n prod logs -l app=backend --all-containers=true

.github/workflows/inject-sidecar.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
cat istio/system/istio.yaml | yq e '. | select(.kind == "HelmRelease" and .metadata.name =="istiod") | .spec.values' - > values.yaml
4444
VERSION=$(cat clusters/my-cluster/istio-version.yaml | yq e '.data.version' -)
4545
helm repo add istio $URI
46-
helm template -f values.yaml --version $VERSION istiod istio/istiod | yq e '.| select(.kind == "ConfigMap" and .metadata.name == "istio-sidecar-injector") | .data.config' - > injector.yaml
47-
helm template -f values.yaml --version $VERSION istiod istio/istiod | yq e '.| select(.kind == "ConfigMap" and .metadata.name == "istio") | .data.mesh' - > mesh.yaml
48-
helm template -f values.yaml --version $VERSION istiod istio/istiod | yq e '.| select(.kind == "ConfigMap" and .metadata.name == "istio-sidecar-injector") | .data.values' - > inj-values.yaml
46+
helm template -n istio-system -f values.yaml --version $VERSION istiod istio/istiod | yq e '.| select(.kind == "ConfigMap" and .metadata.name == "istio-sidecar-injector") | .data.config' - > injector.yaml
47+
helm template -n istio-system -f values.yaml --version $VERSION istiod istio/istiod | yq e '.| select(.kind == "ConfigMap" and .metadata.name == "istio") | .data.mesh' - > mesh.yaml
48+
helm template -n istio-system -f values.yaml --version $VERSION istiod istio/istiod | yq e '.| select(.kind == "ConfigMap" and .metadata.name == "istio-sidecar-injector") | .data.values' - > inj-values.yaml
4949
5050
python -m pip install jsonpatch
5151

istio/system/istio.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ spec:
5151
name: istio
5252
interval: 1h0m0s
5353
values:
54+
global:
55+
istioNamespace: istio-system
5456
pilot:
5557
autoscaleEnabled: false
5658
resources:

0 commit comments

Comments
 (0)