Add in removed tests (had regression failure) to verify fix (#8482)

* Add in removed tests (had regression failure) to verify fix

* Update test to redeploy istiod
This commit is contained in:
Eric Van Norman 2020-11-11 08:16:05 -06:00 committed by GitHub
parent 6771e6b045
commit 456039c26a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 10 deletions

View File

@ -89,6 +89,12 @@ Notice that it may take tens of seconds for the authorization policy to be propa
$ istioctl install --set profile=demo --set meshConfig.trustDomain=new-td
{{< /text >}}
1. Redeploy istiod to pick up the trust domain changes.
{{< text bash >}}
$ kubectl rollout restart deployment -n istio-system istiod
{{< /text >}}
Istio mesh is now running with a new trust domain, `new-td`.
1. Redeploy the `httpbin` and `sleep` applications to pick up changes from the new Istio control plane.

View File

@ -78,26 +78,30 @@ istioctl install --set profile=demo --set meshConfig.trustDomain=new-td
}
snip_migrate_trust_domain_without_trust_domain_aliases_2() {
kubectl delete pod --all
kubectl rollout restart deployment -n istio-system istiod
}
snip_migrate_trust_domain_without_trust_domain_aliases_3() {
kubectl delete pod --all -n sleep-allow
kubectl delete pod --all
}
snip_migrate_trust_domain_without_trust_domain_aliases_4() {
kubectl delete pod --all -n sleep-allow
}
snip_migrate_trust_domain_without_trust_domain_aliases_5() {
kubectl exec "$(kubectl get pod -l app=sleep -o jsonpath={.items..metadata.name})" -c sleep -- curl http://httpbin.default:8000/ip -s -o /dev/null -w "%{http_code}\n"
}
! read -r -d '' snip_migrate_trust_domain_without_trust_domain_aliases_4_out <<\ENDSNIP
! read -r -d '' snip_migrate_trust_domain_without_trust_domain_aliases_5_out <<\ENDSNIP
403
ENDSNIP
snip_migrate_trust_domain_without_trust_domain_aliases_5() {
snip_migrate_trust_domain_without_trust_domain_aliases_6() {
kubectl exec "$(kubectl -n sleep-allow get pod -l app=sleep -o jsonpath={.items..metadata.name})" -c sleep -n sleep-allow -- curl http://httpbin.default:8000/ip -s -o /dev/null -w "%{http_code}\n"
}
! read -r -d '' snip_migrate_trust_domain_without_trust_domain_aliases_5_out <<\ENDSNIP
! read -r -d '' snip_migrate_trust_domain_without_trust_domain_aliases_6_out <<\ENDSNIP
403
ENDSNIP

View File

@ -45,16 +45,17 @@ _verify_same snip_before_you_begin_5 "$snip_before_you_begin_5_out"
echo y | snip_migrate_trust_domain_without_trust_domain_aliases_1
_wait_for_deployment istio-system istiod
snip_migrate_trust_domain_without_trust_domain_aliases_2
_wait_for_deployment istio-system istiod
snip_migrate_trust_domain_without_trust_domain_aliases_3
# TODO need to fix 503's - https://github.com/istio/istio.io/issues/8405 open for that.
#_verify_same snip_migrate_trust_domain_without_trust_domain_aliases_4 "$snip_migrate_trust_domain_without_trust_domain_aliases_4_out"
snip_migrate_trust_domain_without_trust_domain_aliases_4
#_verify_same snip_migrate_trust_domain_without_trust_domain_aliases_5 "$snip_migrate_trust_domain_without_trust_domain_aliases_5_out"
_verify_same snip_migrate_trust_domain_without_trust_domain_aliases_5 "$snip_migrate_trust_domain_without_trust_domain_aliases_5_out"
_verify_same snip_migrate_trust_domain_without_trust_domain_aliases_6 "$snip_migrate_trust_domain_without_trust_domain_aliases_6_out"
echo y | snip_migrate_trust_domain_with_trust_domain_aliases_1