mirror of https://github.com/istio/istio.io.git
Migrate ingress-sni-passthrough test to minimal profile setup (#12576)
* Migrate ingress-sni-passthrough test to profile minimal Signed-off-by: Faseela K <faseela.k@est.tech> * fix after snapshot test Signed-off-by: Faseela K <faseela.k@est.tech> * update minimal profile Signed-off-by: Faseela K <faseela.k@est.tech> * Fix cleanup test error Signed-off-by: Faseela K <faseela.k@est.tech> * review comments Signed-off-by: Faseela K <faseela.k@est.tech> --------- Signed-off-by: Faseela K <faseela.k@est.tech>
This commit is contained in:
parent
3897ae5e15
commit
d8faad8fe3
|
|
@ -18,14 +18,11 @@
|
||||||
source "tests/util/gateway-api.sh"
|
source "tests/util/gateway-api.sh"
|
||||||
install_gateway_api_crds
|
install_gateway_api_crds
|
||||||
|
|
||||||
# @setup profile=none
|
# @setup profile=minimal
|
||||||
istioctl install --set profile=minimal -y
|
|
||||||
source "content/en/docs/tasks/traffic-management/ingress/ingress-sni-passthrough/test.sh"
|
source "content/en/docs/tasks/traffic-management/ingress/ingress-sni-passthrough/test.sh"
|
||||||
|
|
||||||
# @cleanup
|
# @cleanup
|
||||||
snip_cleanup_2
|
snip_cleanup_2
|
||||||
snip_cleanup_3
|
snip_cleanup_3
|
||||||
snip_cleanup_4
|
snip_cleanup_4
|
||||||
istioctl uninstall --purge -y
|
|
||||||
kubectl delete ns istio-system
|
|
||||||
remove_gateway_api_crds
|
remove_gateway_api_crds
|
||||||
|
|
|
||||||
|
|
@ -37,11 +37,20 @@ func TestDocs(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func setupConfig(ctx resource.Context, cfg *istio.Config) {
|
func setupConfig(ctx resource.Context, cfg *istio.Config) {
|
||||||
|
// FIXME: test framework does not honor profile=minimal config at present,
|
||||||
|
// hence we have to explicitly disable the gateways.
|
||||||
cfg.ControlPlaneValues = `
|
cfg.ControlPlaneValues = `
|
||||||
profile: minimal
|
|
||||||
values:
|
values:
|
||||||
pilot:
|
pilot:
|
||||||
env:
|
env:
|
||||||
PILOT_ENABLE_CONFIG_DISTRIBUTION_TRACKING: true
|
PILOT_ENABLE_CONFIG_DISTRIBUTION_TRACKING: true
|
||||||
|
components:
|
||||||
|
egressGateways:
|
||||||
|
- enabled: false
|
||||||
|
name: istio-egressgateway
|
||||||
|
ingressGateways:
|
||||||
|
- enabled: false
|
||||||
|
name: istio-ingressgateway
|
||||||
`
|
`
|
||||||
|
cfg.DeployEastWestGW = false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue