-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Istio ambient to KinD test (#14103)
* Add ambient * Add ambient to kind * Fix script * fix typo * fix script * Fix ordering
- Loading branch information
Showing
5 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: ambient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! ztunnel have to be deployed before istio-cni-node. | ||
#! TODO: Remove this ordering if https://github.com/istio/istio/issues/45781 was solved. | ||
|
||
#@ load("@ytt:overlay", "overlay") | ||
#@ load("helpers.lib.yaml", "subset", "label_subset") | ||
|
||
#@overlay/match by=subset(kind="DaemonSet", name="ztunnel"), expects="1+" | ||
--- | ||
metadata: | ||
#@overlay/match missing_ok=True | ||
annotations: | ||
#@overlay/match missing_ok=True | ||
kapp.k14s.io/change-group: "ztunnel" | ||
|
||
#@overlay/match by=subset(kind="DaemonSet", name="istio-cni-node"), expects="1+" | ||
--- | ||
metadata: | ||
#@overlay/match missing_ok=True | ||
#@overlay/match-child-defaults missing_ok=True | ||
annotations: | ||
kapp.k14s.io/change-group: "istio-cni-node" | ||
kapp.k14s.io/change-rule: "upsert after upserting ztunnel" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters