Skip to content

Commit

Permalink
Add ambient
Browse files Browse the repository at this point in the history
  • Loading branch information
nak3 committed Jun 16, 2023
1 parent 3a6c2b6 commit bb55704
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
24 changes: 24 additions & 0 deletions test/config/ytt/ambient/istio-injection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#@ load("@ytt:overlay", "overlay")
#@ load("@ytt:data", "data")
#@ load("helpers.lib.yaml", "subset")

#@ def namespaces():
#@ names = [
#@ data.values.serving.namespaces.system,
#@ data.values.serving.namespaces.test.default,
#@ data.values.serving.namespaces.test.alternate,
#@ data.values.serving.namespaces.test.tls,
#@ ]
#@ matches = []
#@ for name in names:
#@ matches.append(subset(name=name, kind="Namespace"))
#@ end
#@ return overlay.or_op(*matches)
#@ end

#@overlay/match by=namespaces(), expects="1+"
---
#@overlay/match-child-defaults missing_ok=True
metadata:
labels:
istio.io/dataplane-mode: amabient
7 changes: 7 additions & 0 deletions test/e2e-common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ function parse_flags() {
;;
--no-mesh)
readonly MESH=0
# DO_NOT_SUBMIT:
# Just a demonstration now. Enable AMBIENT on no-mesh.
readonly AMBIENT=1
return 1
;;
--perf)
Expand Down Expand Up @@ -301,6 +304,10 @@ function install() {
YTT_FILES+=("${REPO_ROOT_DIR}/test/config/ytt/mesh")
fi

if (( AMBIENT )); then
YTT_FILES+=("${REPO_ROOT_DIR}/test/config/ytt/ambient")
fi

if (( ENABLE_HA )); then
YTT_FILES+=("${E2E_YAML_DIR}/test/config/chaosduck/chaosduck.yaml")
YTT_FILES+=("${REPO_ROOT_DIR}/test/config/ytt/ha")
Expand Down
2 changes: 1 addition & 1 deletion test/e2e-networking-library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function download_net_istio_yamls() {
echo "Got NET_ISTIO_COMMIT from ${1}: ${sha}"
fi

local istio_yaml="$(net_istio_file_url "$sha" istio.yaml)"
local istio_yaml="https://raw.githubusercontent.com/nak3/net-istio/add-ambient-3/third_party/istio-latest/istio-kind-ambient/istio.yaml"
local istio_config_yaml="$(net_istio_file_url "$sha" config-istio.yaml)"

wget -P "${target_dir}" "${istio_yaml}" \
Expand Down

0 comments on commit bb55704

Please sign in to comment.